Attempt to fix setjmp issues with the Kiel compiler.

This commit is contained in:
inmarket 2015-03-18 06:53:22 +10:00
parent 84ae564bfc
commit 1caabc3f75

View File

@ -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