From 61aea27d9002e491db5ea54a35cf3141843edcb9 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Mon, 3 Jul 2006 12:30:04 +0000 Subject: [PATCH] * include/stdint.h (UINT8_C, UINT16_C): Unsigned types smaller than int promote to signed int. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/include/stdint.h | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 8944aee4a..c9d4f68b0 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2006-07-03 Eric Blake + + * include/stdint.h (UINT8_C, UINT16_C): Unsigned types smaller + than int promote to signed int. + 2006-07-03 Corinna Vinschen * net.cc (cygwin_sendto): Define appropriate parameters using diff --git a/winsup/cygwin/include/stdint.h b/winsup/cygwin/include/stdint.h index 5456239fb..8b040c3a2 100644 --- a/winsup/cygwin/include/stdint.h +++ b/winsup/cygwin/include/stdint.h @@ -1,6 +1,6 @@ /* stdint.h - integer types - Copyright 2003 Red Hat, Inc. + Copyright 2003, 2006 Red Hat, Inc. This file is part of Cygwin. @@ -169,8 +169,8 @@ typedef unsigned long long uintmax_t; #define INT32_C(x) x ## L #define INT64_C(x) x ## LL -#define UINT8_C(x) x ## U -#define UINT16_C(x) x ## U +#define UINT8_C(x) x +#define UINT16_C(x) x #define UINT32_C(x) x ## UL #define UINT64_C(x) x ## ULL