Added SDL_VARIABLE_LENGTH_ARRAY so this #ifdef is localized to one place.
--HG-- extra : rebase_source : d3e161c0ca22ae672ad540a4febef47e141e37c1
This commit is contained in:
parent
5ab2eefa0d
commit
a43f4155bb
2 changed files with 10 additions and 5 deletions
|
@ -26,6 +26,15 @@
|
|||
#define _GNU_SOURCE
|
||||
#endif
|
||||
|
||||
/* 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))
|
||||
#define SDL_VARIABLE_LENGTH_ARRAY 1
|
||||
#else
|
||||
#define SDL_VARIABLE_LENGTH_ARRAY
|
||||
#endif
|
||||
|
||||
#include "dynapi/SDL_dynapi.h"
|
||||
|
||||
#if SDL_DYNAMIC_API
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue