aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@seriouslyembedded.com>2015-07-02 21:57:14 +0200
committerJoel Bodenmann <joel@seriouslyembedded.com>2015-07-02 21:57:14 +0200
commit81850ade15e754a2fac1f70829a1fe3221d62bbf (patch)
tree93a376080fd888c0af0f63e95279cf145dd8f494 /src
parent2c6b82040da055edef2c2970aad2d3a5de9ac46b (diff)
downloaduGFX-81850ade15e754a2fac1f70829a1fe3221d62bbf.tar.gz
uGFX-81850ade15e754a2fac1f70829a1fe3221d62bbf.tar.bz2
uGFX-81850ade15e754a2fac1f70829a1fe3221d62bbf.zip
Improving type definition inclusion in RAW32 port
Diffstat (limited to 'src')
-rw-r--r--src/gos/gos_raw32.h8
1 files 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 <stdint.h>
+#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 <stddef.h>
+#else
typedef uint32_t size_t;
#endif