diff options
author | Ambroz Bizjak <ambrop7@gmail.com> | 2016-11-30 20:41:53 +0300 |
---|---|---|
committer | Ambroz Bizjak <ambrop7@gmail.com> | 2016-11-30 20:41:53 +0300 |
commit | 6a4654b7462cdd3170f1a59f86546311f0448062 (patch) | |
tree | df4d2bc9362d1a7139d407ac5919f6ee073d3543 | |
parent | 5fbb5528d6337fee13eb1eaa8e137043861849cf (diff) |
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.
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index d110619..36b31d6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -131,7 +131,7 @@ if (NOT (SIZE_SIZE GREATER INT_SIZE OR SIZE_SIZE EQUAL INT_SIZE)) endif () if (MSVC) - add_definitions(/TP -D_CRT_SECURE_NO_WARNINGS /wd4065 /wd4018 /wd4533 /wd4244 /wd4102) + add_definitions(-D_CRT_SECURE_NO_WARNINGS /wd4065 /wd4018 /wd4533 /wd4244 /wd4102) else () add_definitions(-std=gnu99 -Wall -Wno-unused-value -Wno-parentheses -Wno-switch -Wredundant-decls -Wshadow) |