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
This commit is contained in:
Meep-Eep
2008-08-23 11:00:16 +00:00
parent 079526298c
commit 9ea6346e3b
+9
View File
@@ -34,6 +34,7 @@ typedef SWORD SIZE;
typedef unsigned char UNICODE; typedef unsigned char UNICODE;
typedef enum typedef enum
{ {
FALSE = 0, FALSE = 0,
@@ -74,6 +75,14 @@ typedef DWORD (*PDWORDFUNC) (void);
// Leaving it alone for now. // Leaving it alone for now.
# define _PACKED # define _PACKED
# define _ALIGNED_ON(bytes) # 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
#endif /* _COMPILER_H */ #endif /* _COMPILER_H */