diff options
-rw-r--r-- | lib/gwp_asan/guarded_pool_allocator.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/gwp_asan/guarded_pool_allocator.cpp b/lib/gwp_asan/guarded_pool_allocator.cpp index 318068404..7e3628eba 100644 --- a/lib/gwp_asan/guarded_pool_allocator.cpp +++ b/lib/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> |