Attempt to fix setjmp issues with the Kiel compiler.
This commit is contained in:
parent
84ae564bfc
commit
1caabc3f75
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user