Mercurial > sdl-ios-xcode
changeset 534:1ea658a3dd52
Turn on enums always ints for CodeWarrior (thanks Darrell!)
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 22 Oct 2002 21:35:49 +0000 |
parents | 263e4884f70d |
children | 917cc5c56176 |
files | include/SDL_types.h |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/include/SDL_types.h Sun Oct 20 00:15:33 2002 +0000 +++ b/include/SDL_types.h Tue Oct 22 21:35:49 2002 +0000 @@ -89,6 +89,11 @@ 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;