mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Misc: Fixed windows nopch build
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user