From da82204961feb8a4faa47e115bcecfbed6ad5785 Mon Sep 17 00:00:00 2001 From: jsalmon3 <> Date: Tue, 4 Feb 2003 03:51:29 +0000 Subject: [PATCH] main is now defined in clone.c for all platforms --- src/stratagus/stratagus.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/stratagus/stratagus.cpp b/src/stratagus/stratagus.cpp index d15aba5a3..626587880 100644 --- a/src/stratagus/stratagus.cpp +++ b/src/stratagus/stratagus.cpp @@ -189,8 +189,11 @@ extern int getopt(int argc, char *const*argv, const char *opt); #endif #endif -#ifdef __MINGW32__ +#ifdef USE_SDL #include "SDL.h" +#endif + +#ifdef __MINGW32__ extern int opterr; extern int optind; extern int optopt; @@ -1379,11 +1382,7 @@ map is relative to FreeCraftLibPath=datapath, use ./map for relative to cwd\n\ ** @param argc Number of arguments. ** @param argv Vector of arguments. */ -#if defined(__MINGW32__) || defined(__CYGWIN__) || defined(__APPLE__) || (defined(_MSC_VER) && !defined(_WIN32_WCE)) -global int mymain(int argc,char** argv) -#else global int main(int argc,char** argv) -#endif { #ifdef USE_BEOS //