aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2014-07-29 10:57:01 +1000
committerinmarket <andrewh@inmarket.com.au>2014-07-29 10:57:01 +1000
commited14e4ca568ae632cf8fc9e4b46ce4da81a40282 (patch)
tree22a3241b739a47ed27998e83e726d7101f4de107 /src
parent05dd4f404b6e5586c29141a7aa3dd5b54b1c88d6 (diff)
downloaduGFX-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.c6
-rw-r--r--src/gwin/class_gwin.h4
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
* @{