Mercurial > sdl-ios-xcode
comparison include/begin_code.h @ 288:2f5a6062db86
Updated for Watcom C++ and LCC compilers
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 28 Feb 2002 00:28:26 +0000 |
parents | 051b991765ba |
children | f6ffac90895c |
comparison
equal
deleted
inserted
replaced
287:e4bd0cf95506 | 288:2f5a6062db86 |
---|---|
65 /* Force structure packing at 4 byte alignment. | 65 /* Force structure packing at 4 byte alignment. |
66 This is necessary if the header is included in code which has structure | 66 This is necessary if the header is included in code which has structure |
67 packing set to an alternate value, say for loading structures from disk. | 67 packing set to an alternate value, say for loading structures from disk. |
68 The packing is reset to the previous value in close_code.h | 68 The packing is reset to the previous value in close_code.h |
69 */ | 69 */ |
70 #if defined(_MSC_VER) || defined(__MWERKS__) || defined(__WATCOMC__) || defined(__BORLANDC__) | 70 #if defined(_MSC_VER) || defined(__MWERKS__) || defined(__BORLANDC__) |
71 #ifdef _MSC_VER | 71 #ifdef _MSC_VER |
72 #pragma warning(disable: 4103) | 72 #pragma warning(disable: 4103) |
73 #endif | 73 #endif |
74 #ifdef __BORLANDC__ | 74 #ifdef __BORLANDC__ |
75 #pragma nopackwarning | 75 #pragma nopackwarning |
84 #ifndef SDL_INLINE_OKAY | 84 #ifndef SDL_INLINE_OKAY |
85 #ifdef __GNUC__ | 85 #ifdef __GNUC__ |
86 #define SDL_INLINE_OKAY | 86 #define SDL_INLINE_OKAY |
87 #else | 87 #else |
88 /* Add any special compiler-specific cases here */ | 88 /* Add any special compiler-specific cases here */ |
89 #if defined(_MSC_VER) || defined(__BORLANDC__) | 89 #if defined(_MSC_VER) || defined(__BORLANDC__) || \ |
90 defined(__DMC__) || defined(__SC__) || \ | |
91 defined(__WATCOMC__) || defined(__LCC__) | |
92 #ifndef __inline__ | |
90 #define __inline__ __inline | 93 #define __inline__ __inline |
94 #endif | |
91 #define SDL_INLINE_OKAY | 95 #define SDL_INLINE_OKAY |
92 #else | 96 #else |
93 #if !defined(__MRC__) && !defined(_SGI_SOURCE) | 97 #if !defined(__MRC__) && !defined(_SGI_SOURCE) |
94 #define __inline__ inline | 98 #define __inline__ inline |
95 #define SDL_INLINE_OKAY | 99 #define SDL_INLINE_OKAY |
104 */ | 108 */ |
105 #ifndef SDL_INLINE_OKAY | 109 #ifndef SDL_INLINE_OKAY |
106 #define __inline__ | 110 #define __inline__ |
107 #endif | 111 #endif |
108 | 112 |
113 /* Apparently this is needed by several Windows compilers */ | |
114 #ifndef NULL | |
115 #ifdef __cplusplus | |
116 #define NULL 0 | |
117 #else | |
118 #define NULL ((void *)0) | |
119 #endif | |
120 #endif /* NULL */ |