include/SDL_test_images.h
changeset 6777 05fc995591ee
parent 6776 2a66a4c817bf
child 6885 700f1b25f77f
     1.1 --- a/include/SDL_test_images.h	Fri Dec 28 18:15:02 2012 -0500
     1.2 +++ b/include/SDL_test_images.h	Fri Dec 28 20:01:41 2012 -0500
     1.3 @@ -53,7 +53,11 @@
     1.4    int width;
     1.5    int height;
     1.6    unsigned int bytes_per_pixel; /* 3:RGB, 4:RGBA */ 
     1.7 +#if (defined(__GNUC__) && (__GNUC__ <= 2))
     1.8    unsigned char pixel_data[0];
     1.9 +#else
    1.10 +  unsigned char pixel_data[];
    1.11 +#endif
    1.12  } SDLTest_SurfaceImage_t;
    1.13  
    1.14  /* Test images */