Skip to content

Commit

Permalink
Turn on enums always ints for CodeWarrior (thanks Darrell!)
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Oct 22, 2002
1 parent d461b3b commit 7db4fce
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/SDL_types.h
Expand Up @@ -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;
Expand Down

0 comments on commit 7db4fce

Please sign in to comment.