Navigation Menu

Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Better compiler warning fix for gcc2.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Dec 29, 2012
1 parent dc66476 commit 631bbd0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/SDL_test_images.h
Expand Up @@ -53,7 +53,11 @@ typedef struct SDLTest_SurfaceImage_s {
int width;
int height;
unsigned int bytes_per_pixel; /* 3:RGB, 4:RGBA */
#if (defined(__GNUC__) && (__GNUC__ <= 2))
unsigned char pixel_data[0];
#else
unsigned char pixel_data[];
#endif
} SDLTest_SurfaceImage_t;

/* Test images */
Expand Down

0 comments on commit 631bbd0

Please sign in to comment.