Turn on enums always ints for CodeWarrior (thanks Darrell!)

This commit is contained in:
Sam Lantinga 2002-10-22 21:35:49 +00:00
parent e8e0ebf933
commit 9d462a34f7

View File

@ -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;