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.
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,
Please see the section titled Predefined Macro Names in the ARM compiler manual. There you will see that __TI_GNU_ATTRIBUTE_SUPPORT__ does what you need.
Thanks and regards,
-George