Win32: Fix macros being enabled for other backends

_UNICODE should not be defined for other backends even when built on
Windows.
master
Camilla Löwy ago%!(EXTRA string=4 years)
parent 0e9ec7788b
commit a646f51bca
  1. 2
      src/CMakeLists.txt

@ -140,7 +140,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()

Loading…
Cancel
Save