diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index c1a01ea0..1b1f2b72 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -72,6 +72,7 @@ target_link_libraries( yaze SDL2::SDL2main ) +add_definitions(-DSDL_MAIN_HANDLED) endif() target_link_libraries( diff --git a/src/app/core/controller.h b/src/app/core/controller.h index a3823e11..7c66b04f 100644 --- a/src/app/core/controller.h +++ b/src/app/core/controller.h @@ -1,6 +1,5 @@ #ifndef YAZE_APP_CORE_CONTROLLER_H #define YAZE_APP_CORE_CONTROLLER_H -#define SDL_MAIN_HANDLED #include #include diff --git a/src/yaze.h b/src/yaze.h index 7ce31203..cb0c5166 100644 --- a/src/yaze.h +++ b/src/yaze.h @@ -1,8 +1,6 @@ #ifndef YAZE_H #define YAZE_H -#define main SDL_main - #include "absl/debugging/failure_signal_handler.h" #include "absl/debugging/symbolize.h" #include "app/core/controller.h"