1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-22 18:28:52 -05:00

Win32: Fix macros being enabled for other backends

_UNICODE should not be defined for other backends even when built on
Windows.

(cherry picked from commit a646f51bca)
This commit is contained in:
Camilla Löwy 2021-04-16 17:09:44 +02:00
parent 30b02dd709
commit 52b2775c2e

View File

@ -131,7 +131,7 @@ elseif (CMAKE_C_COMPILER_ID STREQUAL "GNU" OR
target_compile_options(glfw PRIVATE "-Wall")
endif()
if (WIN32)
if (_GLFW_WIN32)
target_compile_definitions(glfw PRIVATE _UNICODE)
endif()