From 12ef2f537066f1ebc33e72d232eb233a79a5e561 Mon Sep 17 00:00:00 2001 From: deuce <> Date: Tue, 30 May 2006 05:38:07 +0000 Subject: [PATCH] If the regular main() is kept through SLD (ie: *nix) don't fiddle around. --- src/xpdev/sdlfuncs.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/xpdev/sdlfuncs.c b/src/xpdev/sdlfuncs.c index fb943ea057..07cf72aab6 100644 --- a/src/xpdev/sdlfuncs.c +++ b/src/xpdev/sdlfuncs.c @@ -4,7 +4,14 @@ #include <dlfcn.h> #endif +#include <SDL.h> +#ifndef main + #define USE_REAL_MAIN +#endif #include "gen_defs.h" +#ifdef USE_REAL_MAIN + #undef main +#endif #include "sdlfuncs.h" #ifndef _WIN32 -- GitLab