Revert to c++98
This commit is contained in:
parent
91f184caff
commit
857f7c9e61
@ -22,14 +22,14 @@ set(CMAKE_OSX_DEPLOYMENT_TARGET 10.7)
|
|||||||
# only relevant for building shared libs but let's set it regardless
|
# only relevant for building shared libs but let's set it regardless
|
||||||
set(CMAKE_OSX_RPATH 1)
|
set(CMAKE_OSX_RPATH 1)
|
||||||
|
|
||||||
# Set the C++ standard to C++11 to avoid compilation errors on GCC 6 (which
|
# Set the C++ standard to C++98 to avoid compilation errors on GCC 6 (which
|
||||||
# defaults to C++14).
|
# defaults to C++14).
|
||||||
if(CMAKE_VERSION VERSION_LESS "3.1")
|
if(CMAKE_VERSION VERSION_LESS "3.1")
|
||||||
if(CMAKE_COMPILER_IS_GNUCXX)
|
if(CMAKE_COMPILER_IS_GNUCXX)
|
||||||
set (CMAKE_CXX_FLAGS "-std=c++11 ${CMAKE_CXX_FLAGS}")
|
set (CMAKE_CXX_FLAGS "-std=gnu++98 ${CMAKE_CXX_FLAGS}")
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
set (CMAKE_CXX_STANDARD 11)
|
set (CMAKE_CXX_STANDARD 98)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
project(SimGear)
|
project(SimGear)
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
#include <cstdint>
|
#include <stdint.h>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
|
|
||||||
@ -246,7 +246,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
// reject absolute paths
|
// reject absolute paths
|
||||||
if (p.front() == '/') {
|
if (p.at(0) == '/') {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user