Core/Misc: Fixed windows nopch build

This commit is contained in:
Shauren
2024-03-11 18:17:08 +01:00
parent 32e54b6bd1
commit 261a237cfa
2 changed files with 5 additions and 1 deletions

View File

@@ -112,6 +112,11 @@ 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

@@ -59,7 +59,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