Some patches to make SDL compile with armcc (ARM's C compiler).

This commit is contained in:
Ryan C. Gordon 2017-03-02 13:33:04 -05:00
parent 86906a708a
commit 04142af157
5 changed files with 15 additions and 6 deletions

View file

@ -29,7 +29,7 @@
/* This is for a variable-length array at the end of a struct:
struct x { int y; char z[SDL_VARIABLE_LENGTH_ARRAY]; };
Use this because GCC 2 needs different magic than other compilers. */
#if (defined(__GNUC__) && (__GNUC__ <= 2))
#if (defined(__GNUC__) && (__GNUC__ <= 2)) || defined(__CC_ARM)
#define SDL_VARIABLE_LENGTH_ARRAY 1
#else
#define SDL_VARIABLE_LENGTH_ARRAY