Mainstub clean.
This commit is contained in:
parent
9747767474
commit
44e2d66cf5
|
@ -1,7 +1,7 @@
|
||||||
TARGET = ssnes.exe
|
TARGET = ssnes.exe
|
||||||
JTARGET = ssnes-joyconfig.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
|
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
|
CC = gcc
|
||||||
CXX = g++
|
CXX = g++
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
int real_main(int argc, char *argv[]);
|
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
|
||||||
{
|
|
||||||
return real_main(argc, argv);
|
|
||||||
}
|
|
|
@ -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.
|
// Need SDL_main on OSX.
|
||||||
#ifdef _WIN32
|
#ifndef __APPLE__
|
||||||
int real_main(int argc, char *argv[])
|
#undef main
|
||||||
#else
|
|
||||||
int main(int argc, char *argv[])
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
parse_input(argc, argv);
|
parse_input(argc, argv);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue