Core/Misc: Fixed windows nopch build

(cherry picked from commit 261a237cfa)
This commit is contained in:
Shauren
2024-03-11 18:17:08 +01:00
parent b0eee55897
commit e48cedb3ed
2 changed files with 6 additions and 1 deletions

View File

@@ -111,6 +111,12 @@ message(STATUS "MSVC: Disabled NON-SECURE warnings")
target_compile_definitions(trinity-compile-option-interface
INTERFACE
-D_CRT_NONSTDC_NO_WARNINGS)
# Force math constants like M_PI to be available
target_compile_definitions(trinity-compile-option-interface
INTERFACE
-D_USE_MATH_DEFINES)
message(STATUS "MSVC: Disabled POSIX warnings")
# Ignore specific warnings

View File

@@ -56,7 +56,6 @@
#if TRINITY_PLATFORM == TRINITY_PLATFORM_WINDOWS
# define TRINITY_PATH_MAX 260
# define _USE_MATH_DEFINES
#else // TRINITY_PLATFORM != TRINITY_PLATFORM_WINDOWS
# define TRINITY_PATH_MAX PATH_MAX
#endif // TRINITY_PLATFORM