Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Better compiler warning fix for gcc2.

  • Loading branch information
icculus committed Dec 29, 2012
1 parent dc66476 commit 631bbd0441c22966a323d4e4f6193638442a5f4b
Showing with 4 additions and 0 deletions.
  1. +4 −0 include/SDL_test_images.h
@@ -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 */

0 comments on commit 631bbd0

Please sign in to comment.