[PATCH] D64388: Explicitly define __STDC_FORMAT_MACROS for PRIu64
Mitch Phillips via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 11 11:07:32 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL365801: Explicitly define __STDC_FORMAT_MACROS for PRIu64 (authored by hctim, committed by ).
Herald added a subscriber: delcypher.
Changed prior to commit:
https://reviews.llvm.org/D64388?vs=208603&id=209269#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D64388/new/
https://reviews.llvm.org/D64388
Files:
compiler-rt/trunk/lib/gwp_asan/guarded_pool_allocator.cpp
Index: compiler-rt/trunk/lib/gwp_asan/guarded_pool_allocator.cpp
===================================================================
--- compiler-rt/trunk/lib/gwp_asan/guarded_pool_allocator.cpp
+++ compiler-rt/trunk/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>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64388.209269.patch
Type: text/x-patch
Size: 583 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190711/6e75dc28/attachment.bin>
More information about the llvm-commits
mailing list