diff options
author | inmarket <andrewh@inmarket.com.au> | 2014-07-29 10:57:01 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2014-07-29 10:57:01 +1000 |
commit | ed14e4ca568ae632cf8fc9e4b46ce4da81a40282 (patch) | |
tree | 22a3241b739a47ed27998e83e726d7101f4de107 /src | |
parent | 05dd4f404b6e5586c29141a7aa3dd5b54b1c88d6 (diff) | |
download | uGFX-ed14e4ca568ae632cf8fc9e4b46ce4da81a40282.tar.gz uGFX-ed14e4ca568ae632cf8fc9e4b46ce4da81a40282.tar.bz2 uGFX-ed14e4ca568ae632cf8fc9e4b46ce4da81a40282.zip |
Some improvements for the Kiel C compiler
Diffstat (limited to 'src')
-rw-r--r-- | src/gdisp/gdisp.c | 6 | ||||
-rw-r--r-- | src/gwin/class_gwin.h | 4 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/gdisp/gdisp.c b/src/gdisp/gdisp.c index e9ede8ab..b8b4a847 100644 --- a/src/gdisp/gdisp.c +++ b/src/gdisp/gdisp.c @@ -21,7 +21,11 @@ #if 1 #undef INLINE - #define INLINE inline + #if defined(__KEIL__) || defined(__C51__) + #define INLINE __inline + #else + #define INLINE inline + #endif #else #undef INLINE #define INLINE diff --git a/src/gwin/class_gwin.h b/src/gwin/class_gwin.h index 995121b7..b32e4da2 100644 --- a/src/gwin/class_gwin.h +++ b/src/gwin/class_gwin.h @@ -23,6 +23,10 @@ #if GFX_USE_GWIN || defined(__DOXYGEN__) +#if defined(__KEIL__) || defined(__C51__) + #pragma anon_unions +#endif + /** * @brief The predefined flags for a Window * @{ |