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:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user