Remove __STDC_FORMAT_MACROS and __STDC_LIMIT_MACROS guards (and fix SIZE_MAX for LP64).

The various committees decided that everyone should get all these macros,
all the time.

Bug: 12708004
Change-Id: Ib56010dcba9b0656e5701546fefb7f78dc0bf916
This commit is contained in:
Elliott Hughes
2014-01-24 16:37:04 -08:00
parent 513f83bb7f
commit e2a292d278
3 changed files with 125 additions and 206 deletions

View File

@@ -22,8 +22,6 @@
#include <stdint.h>
#include <sys/cdefs.h>
#if !defined(__cplusplus) || defined(__STDC_FORMAT_MACROS) || (__cplusplus >= 201103L)
#ifdef __LP64__
#define __PRI_64_prefix "l"
#define __PRI_PTR_prefix "l"
@@ -250,8 +248,6 @@
#define SCNxMAX "jx" /* uintmax_t */
#define SCNxPTR __PRI_PTR_prefix"x" /* uintptr_t */
#endif /* __cplusplus || __STDC_FORMAT_MACROS */
typedef struct {
intmax_t quot; /* quotient */
intmax_t rem; /* remainder */