Leave PRI* macros defined after using them to define FMT*.
Macro expansion happens too late for the #undef directives to work as a mechanism for preventing accidental direct use of the PRI* macros.
This commit is contained in:
parent
13473c7c66
commit
71cd2f08ff
@ -29,17 +29,6 @@
|
|||||||
# define FMTdPTR PRIdPTR
|
# define FMTdPTR PRIdPTR
|
||||||
# define FMTuPTR PRIuPTR
|
# define FMTuPTR PRIuPTR
|
||||||
# define FMTxPTR PRIxPTR
|
# define FMTxPTR PRIxPTR
|
||||||
|
|
||||||
/* Prevent PRI* macros from accidentally being used. */
|
|
||||||
# undef PRId32
|
|
||||||
# undef PRIu32
|
|
||||||
# undef PRIx32
|
|
||||||
# undef PRId64
|
|
||||||
# undef PRIu64
|
|
||||||
# undef PRIx64
|
|
||||||
# undef PRIdPTR
|
|
||||||
# undef PRIuPTR
|
|
||||||
# undef PRIxPTR
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Size of stack-allocated buffer passed to buferror(). */
|
/* Size of stack-allocated buffer passed to buferror(). */
|
||||||
|
Loading…
Reference in New Issue
Block a user