[Pkg-running-devel] [antpm] 26/39: VS2012 build warning fix
Kristof Ralovich
ralovich-guest at moszumanska.debian.org
Fri Nov 7 11:13:48 UTC 2014
This is an automated email from the git hooks/post-receive script.
ralovich-guest pushed a commit to branch upstream
in repository antpm.
commit f93dd6c407d4f74b6454448cd86942b11d61cbcc
Author: RALOVICH, Kristof <tade60 at freemail.hu>
Date: Mon Aug 11 18:43:45 2014 +0200
VS2012 build warning fix
---
src/CMakeLists.txt | 1 +
src/tests/sm1.cpp | 4 +---
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index be34cd9..adad4e9 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -39,6 +39,7 @@ IF(MSVC)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP")
SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MD")
ADD_DEFINITIONS(-D_CRT_SECURE_NO_WARNINGS)
+ ADD_DEFINITIONS(-D_WIN32_WINNT=0x0500)
ENDIF()
IF(CMAKE_COMPILER_IS_GNUCXX)
diff --git a/src/tests/sm1.cpp b/src/tests/sm1.cpp
index f24eeaa..96d5c8c 100644
--- a/src/tests/sm1.cpp
+++ b/src/tests/sm1.cpp
@@ -20,9 +20,7 @@
// run AntFr310XT on that port
// in return just send ANT replies
-#ifdef _MSC_VER
-# define _WIN32_WINNT 0x0501
-#endif
+
#include "common.hpp"
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-running/antpm.git
More information about the Pkg-running-devel
mailing list