This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Re: [PATCH] stdint.h define of INT32_MIN
- From: Christopher Faylor <cgf at redhat dot com>
- To: cygwin-patches at cygwin dot com
- Date: Fri, 8 Aug 2003 15:31:19 -0400
- Subject: Re: [PATCH] stdint.h define of INT32_MIN
- References: <1231817066743.20030808133751@familiehaase.de>
- Reply-to: cygwin-patches at cygwin dot com
On Fri, Aug 08, 2003 at 01:37:51PM +0200, Gerrit P. Haase wrote:
>Hallo ,
"Hello"
>xyz.c:2: warning: this decimal constant is unsigned only in ISO C90
>
>Both of the below patches are ok. for me to build perl and also there
>are no warnings issued, the first is the way it is defined on Linux
>too, the second seems to be alright according to the SUS specs:
>
>$ diff -udp stdint.h~ stdint.h
>--- stdint.h~ 2003-08-08 13:14:19.248036800 +0200
>+++ stdint.h 2003-08-08 13:14:36.452776000 +0200
>@@ -70,7 +70,7 @@ typedef unsigned long long uintmax_t;
>
> #define INT8_MIN (-128)
> #define INT16_MIN (-32768)
>-#define INT32_MIN (-2147483648)
>+#define INT32_MIN (-2147483647-1)
> #define INT64_MIN (-9223372036854775808)
>
> #define INT8_MAX (127)
>
># END
I've applied the above patch.
Thanks.
cgf