From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1129) id C5EE93858D34; Fri, 27 Aug 2021 16:42:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C5EE93858D34 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Joel Sherrill To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] libc/include/sys/signal.h: Change __STDINT_EXP() to __SIZEOF_INT__ X-Act-Checkin: newlib-cygwin X-Git-Author: Joel Sherrill X-Git-Refname: refs/heads/master X-Git-Oldrev: 801120c1f402f9b0f72b5a231bf9e1cf82614cac X-Git-Newrev: dcb515a95369508b7ca769e3c011e65ef14c80dc Message-Id: <20210827164249.C5EE93858D34@sourceware.org> Date: Fri, 27 Aug 2021 16:42:49 +0000 (GMT) X-BeenThere: newlib-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib GIT logs List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Aug 2021 16:42:49 -0000 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=dcb515a95369508b7ca769e3c011e65ef14c80dc commit dcb515a95369508b7ca769e3c011e65ef14c80dc Author: Joel Sherrill 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)