[PATCH] D64388: Explicitly define __STDC_FORMAT_MACROS for PRIu64
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 11 11:12:31 PDT 2019
lebedev.ri added inline comments.
================
Comment at: compiler-rt/trunk/lib/gwp_asan/guarded_pool_allocator.cpp:14
+// RHEL creates the PRIu64 format macro (for printing uint64_t's) only when this
+// macro is defined before including <inttypes.h>.
+#ifndef __STDC_FORMAT_MACROS
----------------
How do you know it wasn't included before somewhere, by some previous header?
This i think normally should be solved by adding `-D__STDC_FORMAT_MACROS` to compile command.
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D64388/new/
https://reviews.llvm.org/D64388
More information about the llvm-commits
mailing list