Explicitly define __STDC_FORMAT_MACROS for PRIu64 am: 877a137880 am: f03c368b9a am: 0f9f752128
am: c2dfdf0763
Change-Id: I35529a63adaea0128f8c13de69f3d2e5199480e7
diff --git a/gwp_asan/guarded_pool_allocator.cpp b/gwp_asan/guarded_pool_allocator.cpp
index 3180684..7e3628e 100644
--- a/gwp_asan/guarded_pool_allocator.cpp
+++ b/gwp_asan/guarded_pool_allocator.cpp
@@ -10,6 +10,12 @@
#include "gwp_asan/options.h"
+// 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
+ #define __STDC_FORMAT_MACROS 1
+#endif
+
#include <assert.h>
#include <inttypes.h>
#include <stdio.h>