public inbox for newlib-cvs@sourceware.org help / color / mirror / Atom feed
From: Joel Sherrill <joel@sourceware.org> To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] libc/include/sys/signal.h: Change __STDINT_EXP() to __SIZEOF_INT__ Date: Fri, 27 Aug 2021 16:42:49 +0000 (GMT) [thread overview] Message-ID: <20210827164249.C5EE93858D34@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=dcb515a95369508b7ca769e3c011e65ef14c80dc commit dcb515a95369508b7ca769e3c011e65ef14c80dc Author: Joel Sherrill <joel@rtems.org> Date: Fri Aug 27 08:39:31 2021 -0500 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. Diff: --- newlib/libc/include/sys/signal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)
reply other threads:[~2021-08-27 16:42 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20210827164249.C5EE93858D34@sourceware.org \ --to=joel@sourceware.org \ --cc=newlib-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).