aboutsummaryrefslogtreecommitdiffstats
path: root/src/gos/gos_raw32.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gos/gos_raw32.c')
-rw-r--r--src/gos/gos_raw32.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/gos/gos_raw32.c b/src/gos/gos_raw32.c
index 9953090a..dabbe910 100644
--- a/src/gos/gos_raw32.c
+++ b/src/gos/gos_raw32.c
@@ -460,17 +460,11 @@ void gfxSleepMicroseconds(delaytime_t ms) {
* If they don't exist compile them to be the standard setjmp() function.
* Similarly for longjmp().
*/
-#if !defined(__KEIL__) && !defined(__C51__)
- #ifndef setjmp
- #ifndef _setjmp
- #define _setjmp setjmp
- #endif
- #endif
- #ifndef longjmp
- #ifndef _longjmp
- #define _longjmp longjmp
- #endif
- #endif
+#if (!defined(setjmp) && !defined(_setjmp)) || defined(__KIEL__) || defined(__C51__)
+ #define _setjmp setjmp
+#endif
+#if (!defined(longjmp) && !defined(_longjmp)) || defined(__KIEL__) || defined(__C51__)
+ #define _longjmp longjmp
#endif
typedef struct thread {