VC++ compilation fix

This commit is contained in:
Bertrand Songis
2018-08-05 19:55:59 +02:00
parent 2c47883cc2
commit 73c1ed4023
+2 -5
View File
@@ -27,11 +27,8 @@
#define UNUSED(x) ((void)(x)) /* to avoid warnings */ #define UNUSED(x) ((void)(x)) /* to avoid warnings */
#endif #endif
#if defined(SIMU) && __GNUC__ #if defined(SIMU)
#define __ALIGNED(x) __attribute__((aligned(x))) #define __ALIGNED(x)
#define __SECTION_USED(s) __attribute__((used))
#elif defined(SIMU)
#define __ALIGNED(x) __declspec(align(x))
#define __SECTION_USED(s) #define __SECTION_USED(s)
#else #else
#define __ALIGNED(x) __attribute__((aligned(x))) #define __ALIGNED(x) __attribute__((aligned(x)))