From 7db4fce0fe61402752f3e32ffd48c511c4dca3f6 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 22 Oct 2002 21:35:49 +0000 Subject: [PATCH] Turn on enums always ints for CodeWarrior (thanks Darrell!) --- include/SDL_types.h | 5 +++++ 1 file changed, 5 insertions(+) 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;