summaryrefslogtreecommitdiff
path: root/include/SDL_types.h
diff options
context:
space:
mode:
authorSam Lantinga <slouken@libsdl.org>2002-10-22 21:35:49 +0000
committerSam Lantinga <slouken@libsdl.org>2002-10-22 21:35:49 +0000
commit7db4fce0fe61402752f3e32ffd48c511c4dca3f6 (patch)
tree0b7c795f984971fd2f477f223ac15bf01ea9c265 /include/SDL_types.h
parentd461b3b3d95d088f853e48d69da903734a44de3b (diff)
downloadsdl-7db4fce0fe61402752f3e32ffd48c511c4dca3f6.tar.gz
Turn on enums always ints for CodeWarrior (thanks Darrell!)
Diffstat (limited to 'include/SDL_types.h')
-rw-r--r--include/SDL_types.h5
1 files changed, 5 insertions, 0 deletions
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;