From 81850ade15e754a2fac1f70829a1fe3221d62bbf Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Thu, 2 Jul 2015 21:57:14 +0200 Subject: [PATCH] Improving type definition inclusion in RAW32 port --- src/gos/gos_raw32.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/gos/gos_raw32.h b/src/gos/gos_raw32.h index 158d9b19..a37b78ff 100644 --- a/src/gos/gos_raw32.h +++ b/src/gos/gos_raw32.h @@ -43,7 +43,9 @@ typedef unsigned char bool_t; -#if !defined(_STDINT_H) && !defined(__stdint_h) +#if __STDC_VERSION__ >= 199901L + #include +#else typedef signed char int8_t; typedef unsigned char uint8_t; typedef signed short int16_t; @@ -52,7 +54,9 @@ typedef unsigned char bool_t; typedef unsigned int uint32_t; #endif -#if !defined (__need_size_t) && !defined (_STDDEF_H_) && !defined(__stddef_h) +#if defined(__STDC__) + #include +#else typedef uint32_t size_t; #endif