diff options
author | Sam Lantinga <slouken@libsdl.org> | 2002-10-22 21:35:49 +0000 |
---|---|---|
committer | Sam Lantinga <slouken@libsdl.org> | 2002-10-22 21:35:49 +0000 |
commit | 7db4fce0fe61402752f3e32ffd48c511c4dca3f6 (patch) | |
tree | 0b7c795f984971fd2f477f223ac15bf01ea9c265 /include/SDL_types.h | |
parent | d461b3b3d95d088f853e48d69da903734a44de3b (diff) | |
download | sdl-7db4fce0fe61402752f3e32ffd48c511c4dca3f6.tar.gz |
Turn on enums always ints for CodeWarrior (thanks Darrell!)
Diffstat (limited to 'include/SDL_types.h')
-rw-r--r-- | include/SDL_types.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/SDL_types.h b/include/SDL_types.h index fa05e292c..15547bcde 100644 --- a/include/SDL_types.h +++ b/include/SDL_types.h @@ -89,6 +89,11 @@ SDL_COMPILE_TIME_ASSERT(sint64, sizeof(Sint64) == 8); enums having the size of an int must be enabled. This is "-b" for Borland C/C++ and "-ei" for Watcom C/C++ (v11). */ +/* Enable enums always int in CodeWarrior (for MPW use "-enum int") */ +#ifdef __MWERKS__ +#pragma enumsalwaysint on +#endif + typedef enum { DUMMY_ENUM_VALUE } SDL_DUMMY_ENUM; |