diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-28 22:10:27 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-28 22:10:27 +0200 |
| commit | 280b4c235fe11dd629f882f0fb5054384fcee1d7 (patch) | |
| tree | e89735003b52b04e3c17a3ad5532b36e055cdda7 /compat | |
| parent | 1b84fc144f77c4ebef6fdc0a476410420e0a95b3 (diff) | |
more work
Diffstat (limited to 'compat')
| -rw-r--r-- | compat/integer-types.hpp | 8 |
1 files changed, 7 insertions, 1 deletions
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 <cstddef> +#include <cstdint> #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 |
