Attempt to fix setjmp issues with the Kiel compiler.
parent
84ae564bfc
commit
1caabc3f75
|
@ -460,15 +460,17 @@ 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().
|
||||||
*/
|
*/
|
||||||
#ifndef setjmp
|
#if !defined(__KEIL__) && !defined(__C51__)
|
||||||
|
#ifndef setjmp
|
||||||
#ifndef _setjmp
|
#ifndef _setjmp
|
||||||
#define _setjmp setjmp
|
#define _setjmp setjmp
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#ifndef longjmp
|
#ifndef longjmp
|
||||||
#ifndef _longjmp
|
#ifndef _longjmp
|
||||||
#define _longjmp longjmp
|
#define _longjmp longjmp
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef struct thread {
|
typedef struct thread {
|
||||||
|
|
Loading…
Reference in New Issue