Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ambrop72/badvpn.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmbroz Bizjak <ambrop7@gmail.com>2016-11-30 20:41:53 +0300
committerAmbroz Bizjak <ambrop7@gmail.com>2016-11-30 20:41:53 +0300
commit6a4654b7462cdd3170f1a59f86546311f0448062 (patch)
treedf4d2bc9362d1a7139d407ac5919f6ee073d3543
parent5fbb5528d6337fee13eb1eaa8e137043861849cf (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.txt2
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)