comparison include/SDL_stdinc.h @ 2671:c3e7c0698cbb gsoc2008_nds

some changes to the dummy driver for debug purposes that should be reverted. most importantly, commenting out a check for an env. var.
author Darren Alton <dalton@stevens.edu>
date Thu, 12 Jun 2008 02:38:49 +0000
parents e27bdcc80744
children
comparison
equal deleted inserted replaced
2670:6e4669f4db49 2671:c3e7c0698cbb
145 SDL_COMPILE_TIME_ASSERT(sint8, sizeof(Sint8) == 1); 145 SDL_COMPILE_TIME_ASSERT(sint8, sizeof(Sint8) == 1);
146 SDL_COMPILE_TIME_ASSERT(uint16, sizeof(Uint16) == 2); 146 SDL_COMPILE_TIME_ASSERT(uint16, sizeof(Uint16) == 2);
147 SDL_COMPILE_TIME_ASSERT(sint16, sizeof(Sint16) == 2); 147 SDL_COMPILE_TIME_ASSERT(sint16, sizeof(Sint16) == 2);
148 SDL_COMPILE_TIME_ASSERT(uint32, sizeof(Uint32) == 4); 148 SDL_COMPILE_TIME_ASSERT(uint32, sizeof(Uint32) == 4);
149 SDL_COMPILE_TIME_ASSERT(sint32, sizeof(Sint32) == 4); 149 SDL_COMPILE_TIME_ASSERT(sint32, sizeof(Sint32) == 4);
150 #ifndef __NINTENDODS__ /* TODO: figure out why the following happens: 150 #ifndef __NINTENDODS__ /* TODO: figure out why the following happens:
151 include/SDL_stdinc.h:150: error: size of array 'SDL_dummy_uint64' is negative 151 include/SDL_stdinc.h:150: error: size of array 'SDL_dummy_uint64' is negative
152 include/SDL_stdinc.h:151: error: size of array 'SDL_dummy_sint64' is negative */ 152 include/SDL_stdinc.h:151: error: size of array 'SDL_dummy_sint64' is negative */
153 SDL_COMPILE_TIME_ASSERT(uint64, sizeof(Uint64) == 8); 153 SDL_COMPILE_TIME_ASSERT(uint64, sizeof(Uint64) == 8);
154 SDL_COMPILE_TIME_ASSERT(sint64, sizeof(Sint64) == 8); 154 SDL_COMPILE_TIME_ASSERT(sint64, sizeof(Sint64) == 8);
155 #endif 155 #endif
156 #endif /* DOXYGEN_SHOULD_IGNORE_THIS */ 156 #endif /* DOXYGEN_SHOULD_IGNORE_THIS */
157 157
164 #ifdef __MWERKS__ 164 #ifdef __MWERKS__
165 #pragma enumsalwaysint on 165 #pragma enumsalwaysint on
166 #endif 166 #endif
167 167
168 #ifndef DOXYGEN_SHOULD_IGNORE_THIS 168 #ifndef DOXYGEN_SHOULD_IGNORE_THIS
169 #ifndef __NINTENDODS__ /* TODO: include/SDL_stdinc.h:174: error: size of array 'SDL_dummy_enum' is negative */ 169 #ifndef __NINTENDODS__ /* TODO: include/SDL_stdinc.h:174: error: size of array 'SDL_dummy_enum' is negative */
170 typedef enum 170 typedef enum
171 { 171 {
172 DUMMY_ENUM_VALUE 172 DUMMY_ENUM_VALUE
173 } SDL_DUMMY_ENUM; 173 } SDL_DUMMY_ENUM;
174 174
430 430
431 #ifdef HAVE_WCSLEN 431 #ifdef HAVE_WCSLEN
432 #define SDL_wcslen wcslen 432 #define SDL_wcslen wcslen
433 #else 433 #else
434 #if !defined(wchar_t) && defined(__NINTENDODS__) 434 #if !defined(wchar_t) && defined(__NINTENDODS__)
435 #define wchar_t short /* TODO: figure out why libnds doesn't have this */ 435 #define wchar_t short /* TODO: figure out why libnds doesn't have this */
436 #endif 436 #endif
437 extern DECLSPEC size_t SDLCALL SDL_wcslen(const wchar_t * string); 437 extern DECLSPEC size_t SDLCALL SDL_wcslen(const wchar_t * string);
438 #endif 438 #endif
439 439
440 #ifdef HAVE_STRLCPY 440 #ifdef HAVE_STRLCPY