[git commit 0_9_30] patch from Joseph S. Meyers

austinf austinf at localhost.osuosl.org
Sat Oct 10 16:44:02 UTC 2009


commit: http://git.uclibc.org/uClibc/commit/?id=fd23c5a237c466e935727d0ac406c7396ca1b866
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/0_9_30

This patch merges

2006-06-23  Paul Eggert  <eggert at cs.ucla.edu>

        [BZ #2841]
        * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
        since C99 requires the result to promote to 'int' when uint_least8_t
        and uint_least16_t promote to 'int'.

from glibc to fix a bug in uClibc's stdint.h
(GCC's testsuite will now detect this problem, along with various others
some systems have in their stdint.h headers.)

Signed-off-by: Austin Foxley <austinf at cetoncorp.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
 include/stdint.h |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/stdint.h b/include/stdint.h
index 6d1ecbe..465a1b5 100644
--- a/include/stdint.h
+++ b/include/stdint.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
+/* Copyright (C) 1997,1998,1999,2000,2001,2006 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -309,8 +309,8 @@ typedef unsigned long long int	uintmax_t;
 # endif
 
 /* Unsigned.  */
-# define UINT8_C(c)	c ## U
-# define UINT16_C(c)	c ## U
+# define UINT8_C(c)	c
+# define UINT16_C(c)	c
 # define UINT32_C(c)	c ## U
 # if __WORDSIZE == 64
 #  define UINT64_C(c)	c ## UL
-- 
1.6.3.3



More information about the uClibc-cvs mailing list