# HG changeset patch # User Alpar Juttner # Date 2011-04-12 07:52:25 # Node ID 60f4aaedb20f249987a5fc6488da3b3bbdc83e37 # Parent cc9bb4f95ed3b1b6d5d83ec27b5e42ccd9e79303 # Parent 64260c0f58eb25c9bf6563793f7bacbfcc0a14bb Merge #418 to branch 1.2 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 #include +#ifndef WIN32 #include +#endif #include #endif