[Lemon-commits] Alpar Juttner: Merge #418
Lemon HG
hg at lemon.cs.elte.hu
Tue Apr 12 08:16:12 CEST 2011
details: http://lemon.cs.elte.hu/hg/lemon/rev/6660ac776acf
changeset: 1056:6660ac776acf
user: Alpar Juttner <alpar [at] cs.elte.hu>
date: Tue Apr 12 08:04:04 2011 +0200
description:
Merge #418
diffstat:
CMakeLists.txt | 2 +-
lemon/bits/windows.cc | 2 ++
2 files changed, 3 insertions(+), 1 deletions(-)
diffs (25 lines):
diff --git a/CMakeLists.txt b/CMakeLists.txt
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -51,7 +51,7 @@
SET(CXX_WARNING $ENV{LEMON_CXX_WARNING})
ELSE()
IF(CMAKE_COMPILER_IS_GNUCXX)
- SET(CXX_WARNING "-Wall -W -Wunused -Wformat=2 -Wctor-dtor-privacy -Wnon-virtual-dtor -Wno-char-subscripts -Wwrite-strings -Wno-char-subscripts -Wreturn-type -Wcast-qual -Wcast-align -Wsign-promo -Woverloaded-virtual -ansi -fno-strict-aliasing -Wold-style-cast -Wno-unknown-pragmas")
+ SET(CXX_WARNING "-Wall -W -Wunused -Wformat=2 -Wctor-dtor-privacy -Wnon-virtual-dtor -Wno-char-subscripts -Wwrite-strings -Wno-char-subscripts -Wreturn-type -Wcast-qual -Wcast-align -Wsign-promo -Woverloaded-virtual -fno-strict-aliasing -Wold-style-cast -Wno-unknown-pragmas")
SET(CMAKE_CXX_FLAGS_DEBUG CACHE STRING "-ggdb")
SET(CMAKE_C_FLAGS_DEBUG CACHE STRING "-ggdb")
ELSEIF(MSVC)
diff --git a/lemon/bits/windows.cc b/lemon/bits/windows.cc
--- a/lemon/bits/windows.cc
+++ b/lemon/bits/windows.cc
@@ -40,7 +40,9 @@
#else
#include <unistd.h>
#include <ctime>
+#ifndef WIN32
#include <sys/times.h>
+#endif
#include <sys/time.h>
#endif
More information about the Lemon-commits
mailing list