Better compiler warning fix for gcc2.
This commit is contained in:
parent
cfbe53d1df
commit
da7983235f
1 changed files with 4 additions and 0 deletions
|
@ -53,7 +53,11 @@ typedef struct SDLTest_SurfaceImage_s {
|
||||||
int width;
|
int width;
|
||||||
int height;
|
int height;
|
||||||
unsigned int bytes_per_pixel; /* 3:RGB, 4:RGBA */
|
unsigned int bytes_per_pixel; /* 3:RGB, 4:RGBA */
|
||||||
|
#if (defined(__GNUC__) && (__GNUC__ <= 2))
|
||||||
unsigned char pixel_data[0];
|
unsigned char pixel_data[0];
|
||||||
|
#else
|
||||||
|
unsigned char pixel_data[];
|
||||||
|
#endif
|
||||||
} SDLTest_SurfaceImage_t;
|
} SDLTest_SurfaceImage_t;
|
||||||
|
|
||||||
/* Test images */
|
/* Test images */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue