Windows: Add NOMINMAX compile definition

This commit is contained in:
kichikuou
2025-06-20 08:21:35 +09:00
parent febee3f5a3
commit 6de68d7337
5 changed files with 1 additions and 8 deletions
+1
View File
@@ -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
View File
@@ -2,8 +2,6 @@
#ifdef _WIN32
#include <windows.h>
#undef ERROR
#undef min
#undef max
#endif
#include <SDL.h>
#include "common.h"
-2
View File
@@ -7,8 +7,6 @@
#ifdef _WIN32
#include <windows.h>
#undef ERROR
#undef min
#undef max
#endif
#include <SDL_syswm.h>
#include "nact.h"
-2
View File
@@ -6,8 +6,6 @@
#include <windows.h>
#undef ERROR
#undef min
#undef max
#include <memory>
#include <string>
#include <SDL.h>
-2
View File
@@ -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"