27 lines
391 B
C++
27 lines
391 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
|
|
#if defined(__has_include)
|
|
#if __has_include(<stdfloat>)
|
|
#include <stdfloat>
|
|
#endif
|
|
#endif
|
|
|
|
|
|
namespace std {
|
|
|
|
using bool_t = decltype(true);
|
|
using char_t = decltype('x');
|
|
using uchar_t = std::uint8_t;
|
|
|
|
#if !defined(__STDCPP_FLOAT32_T__)
|
|
using float32_t = decltype(0.0F);
|
|
#endif
|
|
|
|
#if !defined(__STDCPP_FLOAT64_T__)
|
|
using float64_t = decltype(0.0);
|
|
#endif
|
|
|
|
}
|