aboutsummaryrefslogtreecommitdiffstats
path: root/src/gos
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2015-03-18 06:53:22 +1000
committerinmarket <andrewh@inmarket.com.au>2015-03-18 06:53:22 +1000
commit1caabc3f75ae2566c00d1ad1df53d15d9d4b685b (patch)
tree810303966b4df8490616eba25c414d6678cf6e96 /src/gos
parent84ae564bfc20337a1cee21c734c1cea5bb6a272c (diff)
downloaduGFX-1caabc3f75ae2566c00d1ad1df53d15d9d4b685b.tar.gz
uGFX-1caabc3f75ae2566c00d1ad1df53d15d9d4b685b.tar.bz2
uGFX-1caabc3f75ae2566c00d1ad1df53d15d9d4b685b.zip
Attempt to fix setjmp issues with the Kiel compiler.
Diffstat (limited to 'src/gos')
-rw-r--r--src/gos/gos_raw32.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/gos/gos_raw32.c b/src/gos/gos_raw32.c
index d4072dc1..9953090a 100644
--- a/src/gos/gos_raw32.c
+++ b/src/gos/gos_raw32.c
@@ -460,14 +460,16 @@ void gfxSleepMicroseconds(delaytime_t ms) {
* If they don't exist compile them to be the standard setjmp() function.
* Similarly for longjmp().
*/
-#ifndef setjmp
- #ifndef _setjmp
- #define _setjmp setjmp
+#if !defined(__KEIL__) && !defined(__C51__)
+ #ifndef setjmp
+ #ifndef _setjmp
+ #define _setjmp setjmp
+ #endif
#endif
-#endif
-#ifndef longjmp
- #ifndef _longjmp
- #define _longjmp longjmp
+ #ifndef longjmp
+ #ifndef _longjmp
+ #define _longjmp longjmp
+ #endif
#endif
#endif