diff options
author | inmarket <andrewh@inmarket.com.au> | 2015-11-11 19:15:30 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2015-11-11 19:15:30 +1000 |
commit | 2efd207660a8e1d471fc3d8ceee944e667e26e71 (patch) | |
tree | ec8199a96e8679060df4314b40c7bc9b25879f00 /src | |
parent | 54b76a7568bfac0cfee1e3ce583c5cefa9578c66 (diff) | |
download | uGFX-2efd207660a8e1d471fc3d8ceee944e667e26e71.tar.gz uGFX-2efd207660a8e1d471fc3d8ceee944e667e26e71.tar.bz2 uGFX-2efd207660a8e1d471fc3d8ceee944e667e26e71.zip |
Revert the use of the new compiler defines as they are not autodetected correctly yet
Diffstat (limited to 'src')
-rw-r--r-- | src/gos/gos_x_threads.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gos/gos_x_threads.c b/src/gos/gos_x_threads.c index ea6e1852..8a781b21 100644 --- a/src/gos/gos_x_threads.c +++ b/src/gos/gos_x_threads.c @@ -203,12 +203,12 @@ static thread mainthread; // The main thread context * If they don't exist compile them to be the standard setjmp() function. * Similarly for longjmp(). */ - #if (!defined(setjmp) && !defined(_setjmp)) || (GFX_COMPILER == GFX_COMPILER_ARMCC) || (GFX_COMPILER == GFX_COMPILER_KEIL) + #if (!defined(setjmp) && !defined(_setjmp)) || defined(__KEIL__) || defined(__C51__) #define CXT_SAVE setjmp #else #define CXT_SAVE _setjmp #endif - #if (!defined(longjmp) && !defined(_longjmp)) || (GFX_COMPILER == GFX_COMPILER_ARMCC) || (GFX_COMPILER == GFX_COMPILER_KEIL) + #if (!defined(longjmp) && !defined(_longjmp)) || defined(__KEIL__) || defined(__C51__) #define CXT_RESTORE longjmp #else #define CXT_RESTORE _longjmp |