Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/newlib
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2021-08-27 16:39:31 +0300
committerJoel Sherrill <joel@rtems.org>2021-08-27 19:41:56 +0300
commitdcb515a95369508b7ca769e3c011e65ef14c80dc (patch)
tree666b7cd71d050d26e0abdf9b7c0fe04041eaeb3b /newlib
parent801120c1f402f9b0f72b5a231bf9e1cf82614cac (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')
-rw-r--r--newlib/libc/include/sys/signal.h2
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)