diff options
author | Ken Brown <kbrown@cornell.edu> | 2017-08-06 17:40:43 -0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2017-08-07 16:07:46 +0200 |
commit | d7821c045e4d8e54244522b4a6f3ab86063c6500 (patch) | |
tree | a7afc38c9e8cc200249046d865133c58f92b8cdf | |
parent | b0f271d1db223b2cadd73e10258c48013d943691 (diff) | |
download | newlib-d7821c045e4d8e54244522b4a6f3ab86063c6500.zip newlib-d7821c045e4d8e54244522b4a6f3ab86063c6500.tar.gz newlib-d7821c045e4d8e54244522b4a6f3ab86063c6500.tar.bz2 |
Define sigsetjmp/siglongjmp only if __POSIX_VISIBLE
-rw-r--r-- | newlib/libc/include/machine/setjmp.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/include/machine/setjmp.h b/newlib/libc/include/machine/setjmp.h index 2b4dd8b..e6c3142 100644 --- a/newlib/libc/include/machine/setjmp.h +++ b/newlib/libc/include/machine/setjmp.h @@ -368,7 +368,7 @@ typedef int jmp_buf[_JBLEN]; _END_STD_C -#if defined(__CYGWIN__) || defined(__rtems__) +#if (defined(__CYGWIN__) || defined(__rtems__)) && __POSIX_VISIBLE #include <signal.h> #ifdef __cplusplus @@ -450,4 +450,4 @@ extern int _setjmp (jmp_buf); #ifdef __cplusplus } #endif -#endif /* __CYGWIN__ or __rtems__ */ +#endif /* (__CYGWIN__ or __rtems__) and __POSIX_VISIBLE */ |