Skip to content
Snippets Groups Projects
Commit 12ef2f53 authored by deuce's avatar deuce
Browse files

If the regular main() is kept through SLD (ie: *nix) don't fiddle around.

parent f4f92c57
No related branches found
No related tags found
No related merge requests found
...@@ -4,7 +4,14 @@ ...@@ -4,7 +4,14 @@
#include <dlfcn.h> #include <dlfcn.h>
#endif #endif
#include <SDL.h>
#ifndef main
#define USE_REAL_MAIN
#endif
#include "gen_defs.h" #include "gen_defs.h"
#ifdef USE_REAL_MAIN
#undef main
#endif
#include "sdlfuncs.h" #include "sdlfuncs.h"
#ifndef _WIN32 #ifndef _WIN32
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment