mirror of
https://github.com/kichikuou/system3-sdl2.git
synced 2026-10-07 06:17:55 +03:00
Windows: Add NOMINMAX compile definition
This commit is contained in:
@@ -162,6 +162,7 @@ else() # NOT (ANDROID OR EMSCRIPTEN)
|
||||
src/win/mako.cpp
|
||||
src/win/resource.rc
|
||||
)
|
||||
target_compile_definitions(system3 PRIVATE NOMINMAX)
|
||||
target_link_libraries(system3 PRIVATE winmm)
|
||||
if (MINGW)
|
||||
target_link_options(system3 PRIVATE -static)
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
#ifdef _WIN32
|
||||
#include <windows.h>
|
||||
#undef ERROR
|
||||
#undef min
|
||||
#undef max
|
||||
#endif
|
||||
#include <SDL.h>
|
||||
#include "common.h"
|
||||
|
||||
@@ -7,8 +7,6 @@
|
||||
#ifdef _WIN32
|
||||
#include <windows.h>
|
||||
#undef ERROR
|
||||
#undef min
|
||||
#undef max
|
||||
#endif
|
||||
#include <SDL_syswm.h>
|
||||
#include "nact.h"
|
||||
|
||||
@@ -6,8 +6,6 @@
|
||||
|
||||
#include <windows.h>
|
||||
#undef ERROR
|
||||
#undef min
|
||||
#undef max
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <SDL.h>
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
#include <windows.h>
|
||||
#include <windowsx.h>
|
||||
#undef ERROR
|
||||
#undef min
|
||||
#undef max
|
||||
#include <time.h>
|
||||
#include "nact.h"
|
||||
#include "SDL_syswm.h"
|
||||
|
||||
Reference in New Issue
Block a user