Maybe something like this? Although I am not entirely sure this is supported by every compiler (should work on most?); there might need to be an additional check for that.
Code: Select all
#if __has_include(<SDL2/SDL.h>)
#include "SDL2/SDL.h"
#include "SDL2/SDL_image.h"
#else
#include "SDL.h"
#include "SDL_image.h"
#endif