From 4b8016927a0a3fe0d3e105730c7183f6b23af81e Mon Sep 17 00:00:00 2001 From: Tobias Zindl Date: Sat, 7 Oct 2023 13:41:11 +0200 Subject: [PATCH] :sparkles: add cstdint header --- include/zll/cstdint.hpp | 51 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 include/zll/cstdint.hpp diff --git a/include/zll/cstdint.hpp b/include/zll/cstdint.hpp new file mode 100644 index 0000000..a42d437 --- /dev/null +++ b/include/zll/cstdint.hpp @@ -0,0 +1,51 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ + +#ifndef ZLL_CSTDINT_HPP +#define ZLL_CSTDINT_HPP + +#include + +namespace zll { +using ::int8_t; +using ::int_fast8_t; +using ::int_least8_t; +using ::uint8_t; +using ::uint_fast8_t; +using ::uint_least8_t; + +using ::int16_t; +using ::int_fast16_t; +using ::int_least16_t; +using ::uint16_t; +using ::uint_fast16_t; +using ::uint_least16_t; + +using ::int32_t; +using ::int_fast32_t; +using ::int_least32_t; +using ::uint32_t; +using ::uint_fast32_t; +using ::uint_least32_t; + +using ::int64_t; +using ::int_fast64_t; +using ::int_least64_t; +using ::uint64_t; +using ::uint_fast64_t; +using ::uint_least64_t; + +using ::intmax_t; +using ::uintmax_t; +} // namespace zll + +namespace zll { +// this is specific for gcc and clang +typedef __INTPTR_TYPE__ intptr_t; +typedef __UINTPTR_TYPE__ uintptr_t; +} // namespace zll + +#endif // ZLL_CSTDINT_HPP