mirror of https://github.com/AxioDL/nod.git
Restore C++17 compatibility
This commit is contained in:
parent
0985c63958
commit
0396cf467b
|
@ -52,7 +52,7 @@ if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
|
|||
set(CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO "/DEBUG /RELEASE /LTCG /OPT:REF /OPT:ICF /INCREMENTAL:NO /DEBUGTYPE:cv,fixup")
|
||||
endif()
|
||||
else()
|
||||
set(CMAKE_CXX_STANDARD 20)
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
endif()
|
||||
endif()
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
#ifdef __cplusplus
|
||||
#include <array>
|
||||
#include <cstdint>
|
||||
|
||||
#if !__cpp_char8_t
|
||||
using char8_t = uint8_t;
|
||||
#endif
|
||||
|
||||
#define OS_CONSTEXPR constexpr
|
||||
|
||||
|
|
Loading…
Reference in New Issue