Turn on enums always ints for CodeWarrior (thanks Darrell!)
authorSam Lantinga <slouken@libsdl.org>
Tue, 22 Oct 2002 21:35:49 +0000
changeset 5341ea658a3dd52
parent 533 263e4884f70d
child 535 917cc5c56176
Turn on enums always ints for CodeWarrior (thanks Darrell!)
include/SDL_types.h
     1.1 --- a/include/SDL_types.h	Sun Oct 20 00:15:33 2002 +0000
     1.2 +++ b/include/SDL_types.h	Tue Oct 22 21:35:49 2002 +0000
     1.3 @@ -89,6 +89,11 @@
     1.4     enums having the size of an int must be enabled.
     1.5     This is "-b" for Borland C/C++ and "-ei" for Watcom C/C++ (v11).
     1.6  */
     1.7 +/* Enable enums always int in CodeWarrior (for MPW use "-enum int") */
     1.8 +#ifdef __MWERKS__
     1.9 +#pragma enumsalwaysint on
    1.10 +#endif
    1.11 +
    1.12  typedef enum {
    1.13  	DUMMY_ENUM_VALUE
    1.14  } SDL_DUMMY_ENUM;