From ed946e24abceec13ef5430b4ea63ff589903fe6c Mon Sep 17 00:00:00 2001 From: inmarket Date: Tue, 6 Oct 2015 12:03:51 +1000 Subject: [PATCH] Improve RAW32 compatibility with other libraries --- src/gos/gos_raw32.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/gos/gos_raw32.h b/src/gos/gos_raw32.h index 0fca9223..2937e52b 100644 --- a/src/gos/gos_raw32.h +++ b/src/gos/gos_raw32.h @@ -33,6 +33,13 @@ typedef unsigned char bool_t; #if __STDC_VERSION__ >= 199901L #include +#elif defined(__GNUC__) || defined(__GNUG__) + typedef __INT8_TYPE__ int8_t; + typedef __UINT8_TYPE__ uint8_t; + typedef __INT16_TYPE__ int16_t; + typedef __UINT16_TYPE__ uint16_t; + typedef __INT32_TYPE__ int32_t; + typedef __UINT32_TYPE__ uint32_t; #else typedef signed char int8_t; typedef unsigned char uint8_t;