Remove hard SDL_main references for CMake solution

This commit is contained in:
Justin Scofield
2022-07-30 13:04:27 -04:00
parent 8ccfdaccf6
commit 7f5666c585
3 changed files with 1 additions and 3 deletions

View File

@@ -72,6 +72,7 @@ target_link_libraries(
yaze
SDL2::SDL2main
)
add_definitions(-DSDL_MAIN_HANDLED)
endif()
target_link_libraries(

View File

@@ -1,6 +1,5 @@
#ifndef YAZE_APP_CORE_CONTROLLER_H
#define YAZE_APP_CORE_CONTROLLER_H
#define SDL_MAIN_HANDLED
#include <SDL.h>
#include <imgui/backends/imgui_impl_sdl.h>

View File

@@ -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"