From 9ea6346e3bdbe14e4a9a7dc2f7f988c6eda31927 Mon Sep 17 00:00:00 2001 From: Meep-Eep Date: Sat, 23 Aug 2008 11:00:16 +0000 Subject: [PATCH] Some defines for Symbian compilers. From Gwl. git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3047 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/libs/compiler.h | 9 +++++++++ 1 file changed, 9 insertions(+) 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 */