diff --git a/libs/video/targets/vid_sgl.c b/libs/video/targets/vid_sgl.c index e2104ade5..241da25e9 100644 --- a/libs/video/targets/vid_sgl.c +++ b/libs/video/targets/vid_sgl.c @@ -78,7 +78,7 @@ extern void VID_Init8bitPalette (void); void VID_SDL_GammaCheck (void) { -#if SDL_MAJOR_VERSION > 1 || (SDL_MAJOR_VERSION == 1 && SDL_MINOR_VERSION > 1) +#if SDL_VERSION_ATLEAST(1, 1, 0) Uint16 redtable[256], greentable[256], bluetable[256]; #else Uint8 redtable[256], greentable[256], bluetable[256];