We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ebd212b commit bbcddd9Copy full SHA for bbcddd9
CMakeLists.txt
@@ -72,7 +72,7 @@ if(POLICY CMP0092)
72
cmake_policy(SET CMP0092 NEW)
73
endif()
74
if (MSVC)
75
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /W4 /D_UNICODE")
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /W4")
76
set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} -Xcompiler /W4 /D_UNICODE")
77
if (MSVC_VERSION GREATER_EQUAL 1914)
78
set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} -Xcompiler /Zc:__cplusplus")
src/main.c
@@ -43,6 +43,7 @@
43
44
// WIN32 wchar support
45
#if defined(_MSC_VER)
46
+ #define _UNICODE 1
47
#include <windows.h> // WideCharToMultiByte
48
#include <tchar.h>
49
#define option _toption
0 commit comments