aboutsummaryrefslogtreecommitdiffstats
path: root/gfx.h
diff options
context:
space:
mode:
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"