Skip to content
This repository was archived by the owner on Aug 22, 2021. It is now read-only.

Commit 6a4654b

Browse files
committed
Don't compile C code as C++ any more with MSVC.
Visual Studio 2015 can compile the tun2socks part of the code at least as C.
1 parent 5fbb552 commit 6a4654b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ if (NOT (SIZE_SIZE GREATER INT_SIZE OR SIZE_SIZE EQUAL INT_SIZE))
131131
endif ()
132132

133133
if (MSVC)
134-
add_definitions(/TP -D_CRT_SECURE_NO_WARNINGS /wd4065 /wd4018 /wd4533 /wd4244 /wd4102)
134+
add_definitions(-D_CRT_SECURE_NO_WARNINGS /wd4065 /wd4018 /wd4533 /wd4244 /wd4102)
135135
else ()
136136
add_definitions(-std=gnu99 -Wall -Wno-unused-value -Wno-parentheses -Wno-switch -Wredundant-decls -Wshadow)
137137

0 commit comments

Comments
 (0)