helos1/libstd/__cpp_config.hpp
Edgaru089 98f92a9958 makefile: move pdlibc to extlib, add C++ stub standard headers
It now kind of compiles with x86_64-elf gcc (does not link though)
2021-11-04 20:15:58 +08:00

26 lines
367 B
C++

#pragma once
#if __cplusplus >= 201103L
#define __CXX11
#endif
#if __cplusplus >= 201402L
#define __CXX14
#endif
#if __cplusplus >= 201703L
#define __CXX17
#endif
#if __cplusplus >= 202002L
#define __CXX20
#endif
#ifdef __CXX11
#define __NOTHROW noexcept
#define __NOTHROW_SINCECXX11 __NOTHROW
#else
#define __NOTHROW throw()
#define __NOTHROW_SINCECXX11
#endif