src/SDL_internal.h
changeset 10925 4de9d54bbc87
parent 10737 3406a0f8b041
child 11726 27d08f1aab80
equal deleted inserted replaced
10924:abfe0c4d98ac 10925:4de9d54bbc87
    27 #endif
    27 #endif
    28 
    28 
    29 /* This is for a variable-length array at the end of a struct:
    29 /* This is for a variable-length array at the end of a struct:
    30     struct x { int y; char z[SDL_VARIABLE_LENGTH_ARRAY]; };
    30     struct x { int y; char z[SDL_VARIABLE_LENGTH_ARRAY]; };
    31    Use this because GCC 2 needs different magic than other compilers. */
    31    Use this because GCC 2 needs different magic than other compilers. */
    32 #if (defined(__GNUC__) && (__GNUC__ <= 2))
    32 #if (defined(__GNUC__) && (__GNUC__ <= 2)) || defined(__CC_ARM)
    33 #define SDL_VARIABLE_LENGTH_ARRAY 1
    33 #define SDL_VARIABLE_LENGTH_ARRAY 1
    34 #else
    34 #else
    35 #define SDL_VARIABLE_LENGTH_ARRAY
    35 #define SDL_VARIABLE_LENGTH_ARRAY
    36 #endif
    36 #endif
    37 
    37