File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -187,6 +187,7 @@ IF(UNIX)
187187 # ensure compatibility with older CPUs
188188 # enable C++11 features
189189 add_definitions (-DLINUX_BUILD )
190+ add_definitions (-D_GLIBCXX_USE_C99 )
190191 SET (CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO } -g -Wall -Wno-unused-variable" )
191192 SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS } -fvisibility=hidden -mtune=generic -std=c++0x" )
192193 SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS } -fvisibility=hidden -mtune=generic" )
Original file line number Diff line number Diff line change @@ -3922,8 +3922,10 @@ Value& Path::make(Value& root) const {
39223922#define isfinite finite
39233923#else
39243924#include < cmath>
3925+ #ifndef isfinite // fix isfinite on Ubuntu 18.04
39253926#define isfinite std::isfinite
39263927#endif
3928+ #endif
39273929
39283930#if defined(_MSC_VER) && _MSC_VER < 1500 // VC++ 8.0 and below
39293931#define snprintf _snprintf
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ distribution.
3636#include < ctype.h>
3737#include < stdarg.h>
3838#include < string.h>
39+ #include < cstdlib>
3940
4041#include < sstream>
4142#include < map>
You can’t perform that action at this time.
0 commit comments