aboutsummaryrefslogtreecommitdiffstats
path: root/gfx.h
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@seriouslyembedded.com>2015-10-20 20:00:45 +0200
committerJoel Bodenmann <joel@seriouslyembedded.com>2015-10-20 20:00:45 +0200
commitfd7e047bf80720cc5dc2801955a74b425942102c (patch)
tree72585ca99b07cc3881bc4c16796d38f19c5ca9c4 /gfx.h
parent56794c2eb911ef6c3fe77517696b0ea1681f68e4 (diff)
downloaduGFX-fd7e047bf80720cc5dc2801955a74b425942102c.tar.gz
uGFX-fd7e047bf80720cc5dc2801955a74b425942102c.tar.bz2
uGFX-fd7e047bf80720cc5dc2801955a74b425942102c.zip
Moving INLINE macro to gfx.h main file as inlined functions are also used outside of gdisp.h
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"