From 280b4c235fe11dd629f882f0fb5054384fcee1d7 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 28 Oct 2022 22:10:27 +0200 Subject: more work --- compat/integer-types.hpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'compat') diff --git a/compat/integer-types.hpp b/compat/integer-types.hpp index d270abda..6411599f 100644 --- a/compat/integer-types.hpp +++ b/compat/integer-types.hpp @@ -20,7 +20,7 @@ typedef unsigned char uint8_t; typedef unsigned short uint16_t; typedef unsigned int uint32_t; typedef unsigned long long uint64_t; -#else +#elif __GNUG__ typedef __SIZE_TYPE__ size_t; typedef __PTRDIFF_TYPE__ ptrdiff_t; typedef __INTPTR_TYPE__ intptr_t; @@ -34,8 +34,13 @@ typedef __UINT8_TYPE__ uint8_t; typedef __UINT16_TYPE__ uint16_t; typedef __UINT32_TYPE__ uint32_t; typedef __UINT64_TYPE__ uint64_t; +#else +#define FM_NO_INTTYPES_FORWARD_DECLARATION +#include +#include #endif +#ifndef FM_NO_INTTYPES_FORWARD_DECLARATION namespace std { using ::size_t; using ::ptrdiff_t; @@ -51,3 +56,4 @@ using ::uint16_t; using ::uint32_t; using ::uint64_t; } // namespace std +#endif -- cgit v1.2.3