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:
Jason Evans 2015-07-23 15:50:09 -07:00
parent 13473c7c66
commit 71cd2f08ff

View File

@ -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(). */