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

Commit

Permalink
Don't compile C code as C++ any more with MSVC.
Browse files Browse the repository at this point in the history
Visual Studio 2015 can compile the tun2socks part of the code at least as C.
  • Loading branch information
ambrop72 committed Nov 30, 2016
1 parent 5fbb552 commit 6a4654b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

1 comment on commit 6a4654b

@jun0s
Copy link

@jun0s jun0s commented on 6a4654b Jan 12, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change broke the Visual Studio 2013 "Release Compilation" debug config don´t have a problems.

Please sign in to comment.