Some patches to make SDL compile with armcc (ARM's C compiler).
This commit is contained in:
parent
86906a708a
commit
04142af157
5 changed files with 15 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue