include/SDL_stdinc.h
changeset 2735 204be4fc2726
parent 2707 6259afb046c5
child 2859 99210400e8b9
     1.1 --- a/include/SDL_stdinc.h	Wed Aug 27 13:37:19 2008 +0000
     1.2 +++ b/include/SDL_stdinc.h	Wed Aug 27 15:10:03 2008 +0000
     1.3 @@ -147,8 +147,12 @@
     1.4  SDL_COMPILE_TIME_ASSERT(sint16, sizeof(Sint16) == 2);
     1.5  SDL_COMPILE_TIME_ASSERT(uint32, sizeof(Uint32) == 4);
     1.6  SDL_COMPILE_TIME_ASSERT(sint32, sizeof(Sint32) == 4);
     1.7 +#ifndef __NINTENDODS__          /* TODO: figure out why the following happens:
     1.8 +                                   include/SDL_stdinc.h:150: error: size of array 'SDL_dummy_uint64' is negative
     1.9 +                                   include/SDL_stdinc.h:151: error: size of array 'SDL_dummy_sint64' is negative */
    1.10  SDL_COMPILE_TIME_ASSERT(uint64, sizeof(Uint64) == 8);
    1.11  SDL_COMPILE_TIME_ASSERT(sint64, sizeof(Sint64) == 8);
    1.12 +#endif
    1.13  #endif /* DOXYGEN_SHOULD_IGNORE_THIS */
    1.14  
    1.15  /* Check to make sure enums are the size of ints, for structure packing.
    1.16 @@ -162,12 +166,14 @@
    1.17  #endif
    1.18  
    1.19  #ifndef DOXYGEN_SHOULD_IGNORE_THIS
    1.20 +#ifndef __NINTENDODS__          /* TODO: include/SDL_stdinc.h:174: error: size of array 'SDL_dummy_enum' is negative */
    1.21  typedef enum
    1.22  {
    1.23      DUMMY_ENUM_VALUE
    1.24  } SDL_DUMMY_ENUM;
    1.25  
    1.26  SDL_COMPILE_TIME_ASSERT(enum, sizeof(SDL_DUMMY_ENUM) == sizeof(int));
    1.27 +#endif
    1.28  #endif /* DOXYGEN_SHOULD_IGNORE_THIS */
    1.29  
    1.30  #include "begin_code.h"
    1.31 @@ -425,6 +431,9 @@
    1.32  #ifdef HAVE_WCSLEN
    1.33  #define SDL_wcslen      wcslen
    1.34  #else
    1.35 +#if !defined(wchar_t) && defined(__NINTENDODS__)
    1.36 +#define wchar_t short           /* TODO: figure out why libnds doesn't have this */
    1.37 +#endif
    1.38  extern DECLSPEC size_t SDLCALL SDL_wcslen(const wchar_t * string);
    1.39  #endif
    1.40