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,6 +460,7 @@ void gfxSleepMicroseconds(delaytime_t ms) {
* If they don't exist compile them to be the standard setjmp() function. * If they don't exist compile them to be the standard setjmp() function.
* Similarly for longjmp(). * Similarly for longjmp().
*/ */
#if !defined(__KEIL__) && !defined(__C51__)
#ifndef setjmp #ifndef setjmp
#ifndef _setjmp #ifndef _setjmp
#define _setjmp setjmp #define _setjmp setjmp
@ -470,6 +471,7 @@ void gfxSleepMicroseconds(delaytime_t ms) {
#define _longjmp longjmp #define _longjmp longjmp
#endif #endif
#endif #endif
#endif
typedef struct thread { typedef struct thread {
struct thread * next; // Next thread struct thread * next; // Next thread