Better compiler warning fix for gcc2.
authorRyan C. Gordon <icculus@icculus.org>
Fri, 28 Dec 2012 20:01:41 -0500
changeset 6777 05fc995591ee
parent 6776 2a66a4c817bf
child 6778 d57d273d74f9
Better compiler warning fix for gcc2.
include/SDL_test_images.h
--- a/include/SDL_test_images.h	Fri Dec 28 18:15:02 2012 -0500
+++ b/include/SDL_test_images.h	Fri Dec 28 20:01:41 2012 -0500
@@ -53,7 +53,11 @@
   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 */