From 1c780d1bdaab2195ed773ed28f48d7cbe4ac86a8 Mon Sep 17 00:00:00 2001 From: jwt2706 Date: Wed, 8 May 2024 22:11:00 -0400 Subject: [PATCH] condit. name the main func based on os --- src/main.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index b873ea6..1b75874 100644 --- a/src/main.c +++ b/src/main.c @@ -1,3 +1,9 @@ +#ifdef _WIN32 +#define mainF SDL_main +#else +#define mainF main +#endif + #include #include #include "../include/sdlutils.h" @@ -5,7 +11,7 @@ #include "../include/chip8.h" #include "../include/load.h" -int SDL_main(int argc, char *argv[]) +int mainF(int argc, char *argv[]) { // init sdl2 SDLComponents components;