Better Win CodeBlock/MinGW support (#418)
authorAlpar Juttner <alpar@cs.elte.hu>
Thu, 07 Apr 2011 16:57:35 +0200
changeset 105364260c0f58eb
parent 1033 16d466589b54
child 1054 632a72b27123
child 1055 60f4aaedb20f
child 1056 6660ac776acf
child 1103 98ddf8d5fda9
Better Win CodeBlock/MinGW support (#418)
- Remove -ansi compilation flag
- Don't include sys/times.h when WIN32 is defined
CMakeLists.txt
lemon/bits/windows.cc
     1.1 --- a/CMakeLists.txt	Wed Aug 25 21:34:58 2010 +0200
     1.2 +++ b/CMakeLists.txt	Thu Apr 07 16:57:35 2011 +0200
     1.3 @@ -51,7 +51,7 @@
     1.4    SET(CXX_WARNING $ENV{LEMON_CXX_WARNING})
     1.5  ELSE()
     1.6    IF(CMAKE_COMPILER_IS_GNUCXX)
     1.7 -    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")
     1.8 +    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")
     1.9      SET(CMAKE_CXX_FLAGS_DEBUG CACHE STRING "-ggdb")
    1.10      SET(CMAKE_C_FLAGS_DEBUG CACHE STRING "-ggdb")
    1.11    ELSEIF(MSVC)
     2.1 --- a/lemon/bits/windows.cc	Wed Aug 25 21:34:58 2010 +0200
     2.2 +++ b/lemon/bits/windows.cc	Thu Apr 07 16:57:35 2011 +0200
     2.3 @@ -40,7 +40,9 @@
     2.4  #else
     2.5  #include <unistd.h>
     2.6  #include <ctime>
     2.7 +#ifndef WIN32
     2.8  #include <sys/times.h>
     2.9 +#endif
    2.10  #include <sys/time.h>
    2.11  #endif
    2.12