diff options
author | inmarket <andrewh@inmarket.com.au> | 2015-10-06 12:03:51 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2015-10-06 12:03:51 +1000 |
commit | ed946e24abceec13ef5430b4ea63ff589903fe6c (patch) | |
tree | 6c39baab95820dd2b8db007d79e973e2e6b88ba3 /src | |
parent | 64a184fc591f7d6a17d903e37370d3f5b8a38bb1 (diff) | |
download | uGFX-ed946e24abceec13ef5430b4ea63ff589903fe6c.tar.gz uGFX-ed946e24abceec13ef5430b4ea63ff589903fe6c.tar.bz2 uGFX-ed946e24abceec13ef5430b4ea63ff589903fe6c.zip |
Improve RAW32 compatibility with other libraries
Diffstat (limited to 'src')
-rw-r--r-- | src/gos/gos_raw32.h | 7 |
1 files changed, 7 insertions, 0 deletions
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 <stdint.h> +#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; |