SDL_main.h is included automatically from SDL.h, so you always get the nasty #define.
Just write:
#include <SDL.h>
#undef main
And it should work fine
SDL_main.h is included automatically from SDL.h, so you always get the nasty #define.
Just write:
#include <SDL.h>
#undef main
And it should work fine