Changeset 1136:20f95cd51aba in lemon-main
- Timestamp:
- 04/28/15 18:13:42 (10 years ago)
- Branch:
- default
- Parents:
- 1133:93d455c647be (diff), 1135:c199e9976d93 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - Phase:
- public
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
CMakeLists.txt
r1131 r1136 71 71 FIND_PACKAGE(Ghostscript) 72 72 73 IF(WIN32) 74 SET(LEMON_WIN32 TRUE) 75 ENDIF(WIN32) 76 73 77 SET(LEMON_ENABLE_GLPK YES CACHE STRING "Enable GLPK solver backend.") 74 78 SET(LEMON_ENABLE_ILOG YES CACHE STRING "Enable ILOG (CPLEX) solver backend.") -
CMakeLists.txt
r1134 r1136 4 4 CMAKE_POLICY(SET CMP0048 OLD) 5 5 ENDIF(POLICY CMP0048) 6 7 IF(POLICY CMP0043) 8 CMAKE_POLICY(SET CMP0043 OLD) 9 ENDIF(POLICY CMP0043) 6 10 7 11 SET(PROJECT_NAME "LEMON") … … 230 234 FORCE ) 231 235 236 SET_DIRECTORY_PROPERTIES(PROPERTIES 237 COMPILE_DEFINITIONS_DEBUG "LEMON_ENABLE_DEBUG" 238 COMPILE_DEFINITIONS_MAINTAINER "LEMON_ENABLE_DEBUG" 239 ) 232 240 233 241 INCLUDE(CheckTypeSize) … … 258 266 259 267 ENABLE_TESTING() 268 269 270 INCLUDE(CheckCXXCompilerFlag) 271 CHECK_CXX_COMPILER_FLAG("-std=c++11" LEMON_CXX11) 272 IF(LEMON_CXX11) 273 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") 274 ENDIF() 275 260 276 261 277 IF(${CMAKE_BUILD_TYPE} STREQUAL "Maintainer") -
lemon/config.h.in
r1131 r1136 1 #ifndef LEMON_CONFIG_H 2 #define LEMON_CONFIG_H 3 1 4 #define LEMON_VERSION "@PROJECT_VERSION@" 2 5 #cmakedefine LEMON_HAVE_LONG_LONG 1 3 6 4 7 #cmakedefine LEMON_CXX11 1 8 9 #cmakedefine LEMON_WIN32 1 5 10 6 11 #cmakedefine LEMON_HAVE_LP 1 … … 12 17 #cmakedefine LEMON_HAVE_CBC 1 13 18 14 #define _LEMON_CPLEX115 #define _LEMON_CLP216 #define _LEMON_GLPK317 #define _LEMON_SOPLEX418 #define _LEMON_CBC519 #define LEMON_CPLEX_ 1 20 #define LEMON_CLP_ 2 21 #define LEMON_GLPK_ 3 22 #define LEMON_SOPLEX_ 4 23 #define LEMON_CBC_ 5 19 24 20 #cmakedefine LEMON_DEFAULT_LP _LEMON_@LEMON_DEFAULT_LP@21 #cmakedefine LEMON_DEFAULT_MIP _LEMON_@LEMON_DEFAULT_MIP@25 #cmakedefine LEMON_DEFAULT_LP LEMON_@LEMON_DEFAULT_LP@_ 26 #cmakedefine LEMON_DEFAULT_MIP LEMON_@LEMON_DEFAULT_MIP@_ 22 27 23 28 #cmakedefine LEMON_USE_PTHREAD 1 24 29 #cmakedefine LEMON_USE_WIN32_THREADS 1 30 31 #endif -
lemon/config.h.in
r1134 r1136 4 4 #define LEMON_VERSION "@PROJECT_VERSION@" 5 5 #cmakedefine LEMON_HAVE_LONG_LONG 1 6 7 #cmakedefine LEMON_CXX11 1 6 8 7 9 #cmakedefine LEMON_WIN32 1 -
lemon/random.h
r1132 r1136 63 63 #define LEMON_RANDOM_H 64 64 65 #include <lemon/config.h> 66 65 67 #include <algorithm> 66 68 #include <iterator> … … 72 74 #include <lemon/dim2.h> 73 75 74 #ifndef WIN3276 #ifndef LEMON_WIN32 75 77 #include <sys/time.h> 76 78 #include <ctime> … … 606 608 /// \return Currently always \c true. 607 609 bool seed() { 608 #ifndef WIN32610 #ifndef LEMON_WIN32 609 611 if (seedFromFile("/dev/urandom", 0)) return true; 610 612 #endif … … 626 628 /// \param offset The offset, from the file read. 627 629 /// \return \c true when the seeding successes. 628 #ifndef WIN32630 #ifndef LEMON_WIN32 629 631 bool seedFromFile(const std::string& file = "/dev/urandom", int offset = 0) 630 632 #else … … 648 650 /// \return Currently always \c true. 649 651 bool seedFromTime() { 650 #ifndef WIN32652 #ifndef LEMON_WIN32 651 653 timeval tv; 652 654 gettimeofday(&tv, 0); -
lemon/random.h
r1134 r1136 252 252 current = state + length; 253 253 254 registerWord *curr = state + length - 1;255 registerlong num;254 Word *curr = state + length - 1; 255 long num; 256 256 257 257 num = length - shift;
Note: See TracChangeset
for help on using the changeset viewer.