8ae002
commit 1ef74943ce2f114c78b215af57c2ccc72ccdb0b7
8ae002
Author: Paul Pluzhnikov <ppluzhnikov@google.com>
8ae002
Date:   Thu Apr 25 11:08:31 2013 -0700
8ae002
8ae002
    Get rid of __STDC_FORMAT_MACROS, __STDC_LIMIT_MACROS and
8ae002
    __STDC_CONSTANT_MACROS.
8ae002
8ae002
--- glibc-2.17-c758a686/sysdeps/generic/inttypes.h
8ae002
+++ glibc-2.17-c758a686/sysdeps/generic/inttypes.h
8ae002
@@ -41,10 +41,6 @@
8ae002
 #endif
8ae002
 
8ae002
 
8ae002
-/* The ISO C99 standard specifies that these macros must only be
8ae002
-   defined if explicitly requested.  */
8ae002
-#if !defined __cplusplus || defined __STDC_FORMAT_MACROS
8ae002
-
8ae002
 # if __WORDSIZE == 64
8ae002
 #  define __PRI64_PREFIX	"l"
8ae002
 #  define __PRIPTR_PREFIX	"l"
8ae002
@@ -267,8 +263,6 @@
8ae002
 # define SCNuPTR	__PRIPTR_PREFIX "u"
8ae002
 # define SCNxPTR	__PRIPTR_PREFIX "x"
8ae002
 
8ae002
-#endif	/* C++ && format macros */
8ae002
-
8ae002
 
8ae002
 __BEGIN_DECLS
8ae002
 
8ae002
--- glibc-2.17-c758a686/sysdeps/generic/stdint.h
8ae002
+++ glibc-2.17-c758a686/sysdeps/generic/stdint.h
8ae002
@@ -141,10 +141,6 @@
8ae002
 #endif
8ae002
 
8ae002
 
8ae002
-/* The ISO C99 standard specifies that in C++ implementations these
8ae002
-   macros should only be defined if explicitly requested.  */
8ae002
-#if !defined __cplusplus || defined __STDC_LIMIT_MACROS
8ae002
-
8ae002
 # if __WORDSIZE == 64
8ae002
 #  define __INT64_C(c)	c ## L
8ae002
 #  define __UINT64_C(c)	c ## UL
8ae002
@@ -278,12 +274,6 @@
8ae002
 # define WINT_MIN		(0u)
8ae002
 # define WINT_MAX		(4294967295u)
8ae002
 
8ae002
-#endif	/* C++ && limit macros */
8ae002
-
8ae002
-
8ae002
-/* The ISO C99 standard specifies that in C++ implementations these
8ae002
-   should only be defined if explicitly requested.  */
8ae002
-#if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
8ae002
 
8ae002
 /* Signed.  */
8ae002
 # define INT8_C(c)	c
8ae002
@@ -314,6 +304,4 @@
8ae002
 #  define UINTMAX_C(c)	c ## ULL
8ae002
 # endif
8ae002
 
8ae002
-#endif	/* C++ && constant macros */
8ae002
-
8ae002
 #endif /* stdint.h */