diff options
author | inmarket <andrewh@inmarket.com.au> | 2015-03-18 06:53:22 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2015-03-18 06:53:22 +1000 |
commit | 1caabc3f75ae2566c00d1ad1df53d15d9d4b685b (patch) | |
tree | 810303966b4df8490616eba25c414d6678cf6e96 /src/gos | |
parent | 84ae564bfc20337a1cee21c734c1cea5bb6a272c (diff) | |
download | uGFX-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.c | 16 |
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 |