This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to detect if -gcc extensions enabled? ( #ifdef GCC ? )

My goal is to create a macro to byte pack data structures for portability between MSVC.  In order to use the gcc packed attribute the ARM compiler must have the -gcc extensions enabled.

Is there a define I can test to determine if gcc extensions have been enabled?

I tried the following without success.

#ifdef GCC

#endif

Thanks in advance,