Segger studio ignores my __PACKED struct pragma

Hi all,

I am moving from Keil into SES, and one of the things I am not being able to find is how to do the __PACKED pragma.

I see in SES that:

#elif defined ( __GNUC__ )

is being defined correctly so this should work:

#ifndef __PACKED

#define __PACKED __attribute__((packed))

#endif

But yet, I get this warning:

'packed' attribute ignored [-Wattributes]

What am I doing wrong?

Thanks!