diff options
author | Tristan Gingold | 2014-11-14 21:46:31 +0100 |
---|---|---|
committer | Tristan Gingold | 2014-11-14 21:46:31 +0100 |
commit | dde5421950283b4653b1d5256d347dc92c66cdff (patch) | |
tree | a8f982f2018674f1d2de6cb2d70b6ee58189c23f /src/grt/config | |
parent | 0cb8bd9359c902950e3995e802881c2a77ab9572 (diff) | |
download | ghdl-dde5421950283b4653b1d5256d347dc92c66cdff.tar.gz ghdl-dde5421950283b4653b1d5256d347dc92c66cdff.tar.bz2 ghdl-dde5421950283b4653b1d5256d347dc92c66cdff.zip |
linux.c: fix typos, disable builting sjlj for clang.
Diffstat (limited to 'src/grt/config')
-rw-r--r-- | src/grt/config/linux.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/grt/config/linux.c b/src/grt/config/linux.c index e468056..dd2a9d8 100644 --- a/src/grt/config/linux.c +++ b/src/grt/config/linux.c @@ -342,7 +342,7 @@ grt_stack_allocate (void) * USE_SETJMP: setjmp/longjmp, slower because signals mask is saved/restored. */ -#ifdef __GNUC__ +#if defined (__GNUC__) && !defined(__clang__) #define USE_BUILTIN_SJLJ #else #define USE__SETJMP @@ -350,7 +350,7 @@ grt_stack_allocate (void) /* #define USE_SETJMP */ #ifdef USE_BUILTIN_SJLJ -typedef int *JMP_BUF[5]; +typedef void *JMP_BUF[5]; static int sjlj_val; # define SETJMP(BUF) (__builtin_setjmp (BUF), sjlj_val) # define LONGJMP(BUF, VAL) \ @@ -361,7 +361,7 @@ typedef jmp_buf JMP_BUF; # ifdef USE__SETJMP # define SETJMP _setjmp # define LONGJMP _longjmp -# elsif defined (USE_SETJMP) +# elif defined (USE_SETJMP) # define SETJMP setjmp # define LONGJMP longjmp # else |