diff options
author | Joel Sherrill <joel@rtems.org> | 2021-08-27 16:39:31 +0300 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2021-08-27 19:41:56 +0300 |
commit | dcb515a95369508b7ca769e3c011e65ef14c80dc (patch) | |
tree | 666b7cd71d050d26e0abdf9b7c0fe04041eaeb3b /newlib/libc | |
parent | 801120c1f402f9b0f72b5a231bf9e1cf82614cac (diff) |
libc/include/sys/signal.h: Change __STDINT_EXP() to __SIZEOF_INT__
__STDINT_EXP() is provided by newlib but not by stdint-gcc.h. stdint-gcc.h
is used when the GCC argument -ffreestanding is used and this results in this
file not compiling.
Diffstat (limited to 'newlib/libc')
-rw-r--r-- | newlib/libc/include/sys/signal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/include/sys/signal.h b/newlib/libc/include/sys/signal.h index 255782eb6..4bd841b80 100644 --- a/newlib/libc/include/sys/signal.h +++ b/newlib/libc/include/sys/signal.h @@ -244,7 +244,7 @@ int sigqueue (pid_t, int, const union sigval); /* POSIX Issue 8 adds sig2str() and str2sig() */ -#if __STDINT_EXP(INT_MAX) > 0x7fff +#if __SIZEOF_INT__ >= 4 #define SIG2STR_MAX (sizeof("RTMAX+") + sizeof("4294967295") - 1) #else #define SIG2STR_MAX (sizeof("RTMAX+") + sizeof("65535") - 1) |