浏览代码

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 a646f51bca867e04254c5fdcb741741265bc4d6c)
Camilla Löwy 4 年之前
父节点
当前提交
52b2775c2e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/CMakeLists.txt

+ 1 - 1
src/CMakeLists.txt

@@ -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()