Fix compile errors under Android toolchain. Seems to have the same issue as the NDS.
authorPaul Hunkin <paul@bieh.net>
Sun, 23 May 2010 15:10:18 +1200
changeset 4697a5c4ded0c979
parent 4696 3a3e8fb1b6f4
child 4698 52697090c967
Fix compile errors under Android toolchain. Seems to have the same issue as the NDS.
include/SDL_stdinc.h
     1.1 --- a/include/SDL_stdinc.h	Sun May 23 15:08:30 2010 +1200
     1.2 +++ b/include/SDL_stdinc.h	Sun May 23 15:10:18 2010 +1200
     1.3 @@ -167,9 +167,10 @@
     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 +#if !defined(__NINTENDODS__) && !defined(__ANDROID__)
    1.11 +/* TODO: figure out why the following happens:
    1.12 + include/SDL_stdinc.h:150: error: size of array 'SDL_dummy_uint64' is negative
    1.13 + include/SDL_stdinc.h:151: error: size of array 'SDL_dummy_sint64' is negative */
    1.14  SDL_COMPILE_TIME_ASSERT(uint64, sizeof(Uint64) == 8);
    1.15  SDL_COMPILE_TIME_ASSERT(sint64, sizeof(Sint64) == 8);
    1.16  #endif
    1.17 @@ -188,7 +189,8 @@
    1.18  
    1.19  /** \cond */
    1.20  #ifndef DOXYGEN_SHOULD_IGNORE_THIS
    1.21 -#ifndef __NINTENDODS__          /* TODO: include/SDL_stdinc.h:174: error: size of array 'SDL_dummy_enum' is negative */
    1.22 +#if !defined(__NINTENDODS__) && !defined(__ANDROID__) 
    1.23 +   /* TODO: include/SDL_stdinc.h:174: error: size of array 'SDL_dummy_enum' is negative */
    1.24  typedef enum
    1.25  {
    1.26      DUMMY_ENUM_VALUE