Explicitly define __STDC_FORMAT_MACROS for PRIu64 am: 877a137880 am: f03c368b9a
am: 0f9f752128
Change-Id: I2a54934941b48a3d6d6607655fae3a4cbf9090b3
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>