include/SDL_test_images.h
changeset 7051 cf773d8091c7
parent 6885 700f1b25f77f
child 7053 187225ae13e5
equal deleted inserted replaced
7050:aa1f44908402 7051:cf773d8091c7
    51  */
    51  */
    52 typedef struct SDLTest_SurfaceImage_s {
    52 typedef struct SDLTest_SurfaceImage_s {
    53   int width;
    53   int width;
    54   int height;
    54   int height;
    55   unsigned int bytes_per_pixel; /* 3:RGB, 4:RGBA */ 
    55   unsigned int bytes_per_pixel; /* 3:RGB, 4:RGBA */ 
    56 #if (defined(__GNUC__) && (__GNUC__ <= 2))
    56   const unsigned char *pixel_data;
    57   unsigned char pixel_data[0];
       
    58 #else
       
    59   unsigned char pixel_data[];
       
    60 #endif
       
    61 } SDLTest_SurfaceImage_t;
    57 } SDLTest_SurfaceImage_t;
    62 
    58 
    63 /* Test images */
    59 /* Test images */
    64 SDL_Surface *SDLTest_ImageBlit();
    60 SDL_Surface *SDLTest_ImageBlit();
    65 SDL_Surface *SDLTest_ImageBlitColor();
    61 SDL_Surface *SDLTest_ImageBlitColor();