Possibly fix compiler warnings, simplify SDLTest_SurfaceImage_t definition.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 03 Apr 2013 11:38:05 -0400
changeset 7051cf773d8091c7
parent 7050 aa1f44908402
child 7052 1297b81ad473
Possibly fix compiler warnings, simplify SDLTest_SurfaceImage_t definition.
include/SDL_test_images.h
test/automated/common/common.h
     1.1 --- a/include/SDL_test_images.h	Wed Apr 03 11:34:21 2013 -0400
     1.2 +++ b/include/SDL_test_images.h	Wed Apr 03 11:38:05 2013 -0400
     1.3 @@ -53,11 +53,7 @@
     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 +  const unsigned char *pixel_data;
    1.13  } SDLTest_SurfaceImage_t;
    1.14  
    1.15  /* Test images */
     2.1 --- a/test/automated/common/common.h	Wed Apr 03 11:34:21 2013 -0400
     2.2 +++ b/test/automated/common/common.h	Wed Apr 03 11:38:05 2013 -0400
     2.3 @@ -22,7 +22,7 @@
     2.4     int width;
     2.5     int height;
     2.6     unsigned int  bytes_per_pixel; /* 3:RGB, 4:RGBA */ 
     2.7 -   const unsigned char pixel_data[];
     2.8 +   const unsigned char *pixel_data;
     2.9  } SurfaceImage_t;
    2.10  
    2.11  #define ALLOWABLE_ERROR_OPAQUE	0