diff --git a/Makefile.win b/Makefile.win index d053721ba5..ca4ed2401a 100644 --- a/Makefile.win +++ b/Makefile.win @@ -1,7 +1,7 @@ TARGET = ssnes.exe JTARGET = ssnes-joyconfig.exe OBJ = ssnes.o file.o driver.o conf/config_file.o settings.o dynamic.o message.o rewind.o movie.o gfx/gfx_common.o bps.o ups.o strl.o screenshot.o audio/hermite.o getopt.o audio/utils.o posix_string.o -JOBJ = conf/config_file.o tools/main-stub.o tools/ssnes-joyconfig.o strl.o posix_string.o +JOBJ = conf/config_file.o tools/ssnes-joyconfig.o strl.o posix_string.o CC = gcc CXX = g++ diff --git a/tools/main-stub.c b/tools/main-stub.c deleted file mode 100644 index 0fb5bf8585..0000000000 --- a/tools/main-stub.c +++ /dev/null @@ -1,6 +0,0 @@ -int real_main(int argc, char *argv[]); - -int main(int argc, char *argv[]) -{ - return real_main(argc, argv); -} diff --git a/tools/ssnes-joyconfig.c b/tools/ssnes-joyconfig.c index c370b4dc0d..4043a8939e 100644 --- a/tools/ssnes-joyconfig.c +++ b/tools/ssnes-joyconfig.c @@ -301,12 +301,12 @@ static void parse_input(int argc, char *argv[]) } -// Windows is being bitchy. Cannot include SDL.h with a file that has main() it seems ... It simply won't run at all even with -lSDLmain. -#ifdef _WIN32 -int real_main(int argc, char *argv[]) -#else -int main(int argc, char *argv[]) +// Need SDL_main on OSX. +#ifndef __APPLE__ +#undef main #endif + +int main(int argc, char *argv[]) { parse_input(argc, argv);