aboutsummaryrefslogtreecommitdiffstats
path: root/gfx.h
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@seriouslyembedded.com>2015-10-20 20:01:41 +0200
committerJoel Bodenmann <joel@seriouslyembedded.com>2015-10-20 20:01:41 +0200
commit592ee0f312c0009dccbdabf2a2736bf329434345 (patch)
tree49d502d4ca9cb631923d8a3437d43af7c1b56af6 /gfx.h
parentfbe7df300857bf3c327342f14316e59ba6c99e04 (diff)
parentfd7e047bf80720cc5dc2801955a74b425942102c (diff)
downloaduGFX-592ee0f312c0009dccbdabf2a2736bf329434345.tar.gz
uGFX-592ee0f312c0009dccbdabf2a2736bf329434345.tar.bz2
uGFX-592ee0f312c0009dccbdabf2a2736bf329434345.zip
Merge branch 'master' into Keil
Diffstat (limited to 'gfx.h')
-rw-r--r--gfx.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/gfx.h b/gfx.h
index 2d073c0c..21d5dbb1 100644
--- a/gfx.h
+++ b/gfx.h
@@ -51,6 +51,18 @@
#endif
#endif
+/**
+ * __inline was standardized with C99. previous to that each compiler handles it differently.
+ */
+#undef INLINE
+#ifdef(__KEIL__)
+ #define INLINE __inline
+#elif(__C51__)
+ #define INLINE __inline
+#else
+ #define INLINE inline
+#endif
+
/* gfxconf.h is the user's project configuration for the GFX system. */
#include "gfxconf.h"