+2015-03-24 Corinna Vinschen <corinna@vinschen.de>
+
+ Per glibc BZ #15366:
+ * inttypes.h: Drop __STDC_FORMAT_MACROS consideration.
+ * stdint.h: Drop __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS
+ consideration.
+
2015-03-23 Corinna Vinschen <corinna@vinschen.de>
* include/cygwin/_types.h: Drop unused file.
/* inttypes.h - fixed size integer types
- Copyright 2003, 2005, 2009, 2010, 2012 Red Hat, Inc.
+ Copyright 2003, 2005, 2009, 2010, 2012, 2015 Red Hat, Inc.
This file is part of Cygwin.
#include <stddef.h>
#include <bits/wordsize.h>
-/* C99 requires that in C++ the following macros should be defined only
- if requested. */
-#if !defined (__cplusplus) || defined (__STDC_FORMAT_MACROS) \
- || defined (__INSIDE_CYGWIN__)
-
#if __WORDSIZE == 64
#define __PRI64 "l"
#define __PRIFAST "l"
#define SCNxMAX __SCN64 "x"
#define SCNxPTR __SCNPTR "x"
-#endif /* !__cplusplus || __STDC_FORMAT_MACROS || __INSIDE_CYGWIN__ */
-
#ifdef __cplusplus
extern "C" {
#endif
/* stdint.h - integer types
- Copyright 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Red Hat, Inc.
+ Copyright 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2012 2015 Red Hat, Inc.
This file is part of Cygwin.
typedef unsigned long long uintmax_t;
#endif
-/* C99 requires that in C++ the following macros should be defined only
- if requested. */
-#if !defined (__cplusplus) || defined (__STDC_LIMIT_MACROS) \
- || defined (__INSIDE_CYGWIN__)
-
#ifdef __x86_64__
# define __I64(n) n ## L
# define __U64(n) n ## UL
#define WINT_MAX (4294967295U)
#endif
-#endif /* !__cplusplus || __STDC_LIMIT_MACROS || __INSIDE_CYGWIN__ */
-
-/* C99 requires that in C++ the following macros should be defined only
- if requested. */
-#if !defined (__cplusplus) || defined (__STDC_CONSTANT_MACROS) \
- || defined (__INSIDE_CYGWIN__)
-
/* Macros for minimum-width integer constant expressions */
#define INT8_C(x) x
#define UINTMAX_C(x) x ## ULL
#endif
-#endif /* !__cplusplus || __STDC_CONSTANT_MACROS || __INSIDE_CYGWIN__ */
-
#endif /* _STDINT_H */