diff --git a/sc2/src/sc2code/libs/compiler.h b/sc2/src/sc2code/libs/compiler.h index 5e4e31c8c..4e855505c 100644 --- a/sc2/src/sc2code/libs/compiler.h +++ b/sc2/src/sc2code/libs/compiler.h @@ -34,6 +34,7 @@ typedef SWORD SIZE; typedef unsigned char UNICODE; + typedef enum { FALSE = 0, @@ -74,6 +75,14 @@ typedef DWORD (*PDWORDFUNC) (void); // Leaving it alone for now. # define _PACKED # define _ALIGNED_ON(bytes) +#elif defined(__ARMCC__) +# define _PACKED __attribute__((packed)) +# define _ALIGNED_ANY __attribute__((aligned)) +# define _ALIGNED_ON(bytes) __attribute__((aligned(bytes))) +#elif defined(__WINSCW__) +# define _PACKED +# define _ALIGNED_ANY +# define _ALIGNED_ON(bytes) #endif #endif /* _COMPILER_H */