diff options
author | Jason Evans <jasone@canonware.com> | 2015-07-23 22:50:09 (GMT) |
---|---|---|
committer | Jason Evans <jasone@canonware.com> | 2015-07-23 22:50:09 (GMT) |
commit | 71cd2f08ff1775c1265d0b4a7967f10da867bd83 (patch) | |
tree | f78b5a7ecbe9ee8a1926bbb9f55616145e0afe59 /include/jemalloc | |
parent | 13473c7c66a81a4dc1cf11a97e9c8b1dbb785b64 (diff) | |
download | jemalloc-71cd2f08ff1775c1265d0b4a7967f10da867bd83.zip jemalloc-71cd2f08ff1775c1265d0b4a7967f10da867bd83.tar.gz jemalloc-71cd2f08ff1775c1265d0b4a7967f10da867bd83.tar.bz2 |
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.
Diffstat (limited to 'include/jemalloc')
-rw-r--r-- | include/jemalloc/internal/util.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/include/jemalloc/internal/util.h b/include/jemalloc/internal/util.h index ba42df7..fac2a17 100644 --- a/include/jemalloc/internal/util.h +++ b/include/jemalloc/internal/util.h @@ -29,17 +29,6 @@ # define FMTdPTR PRIdPTR # define FMTuPTR PRIuPTR # 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 /* Size of stack-allocated buffer passed to buferror(). */ |