Remove hard SDL_main references for CMake solution
This commit is contained in:
@@ -72,6 +72,7 @@ target_link_libraries(
|
||||
yaze
|
||||
SDL2::SDL2main
|
||||
)
|
||||
add_definitions(-DSDL_MAIN_HANDLED)
|
||||
endif()
|
||||
|
||||
target_link_libraries(
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user