From fd7e047bf80720cc5dc2801955a74b425942102c Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Tue, 20 Oct 2015 20:00:45 +0200 Subject: Moving INLINE macro to gfx.h main file as inlined functions are also used outside of gdisp.h --- gfx.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'gfx.h') 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" -- cgit v1.2.3