projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea278c3
)
Explicitly enable PRIu64 by defining __STDC_FORMAT_MACROS if it isn't
author
Kaelyn Uhrain
<rikka@google.com>
Tue, 7 Jan 2014 00:29:19 +0000
(
00:29
+0000)
committer
Kaelyn Uhrain
<rikka@google.com>
Tue, 7 Jan 2014 00:29:19 +0000
(
00:29
+0000)
yet defined.
llvm-svn: 198650
compiler-rt/lib/profile/PGOProfiling.c
patch
|
blob
|
history
diff --git
a/compiler-rt/lib/profile/PGOProfiling.c
b/compiler-rt/lib/profile/PGOProfiling.c
index
737ba79
..
310801b
100644
(file)
--- a/
compiler-rt/lib/profile/PGOProfiling.c
+++ b/
compiler-rt/lib/profile/PGOProfiling.c
@@
-10,6
+10,12
@@
#include <stdio.h>
#include <stdlib.h>
+// Explicitly request that the format macros like PRIu64 be enabled if they
+// haven't already been enabled.
+#ifndef __STDC_FORMAT_MACROS
+#define __STDC_FORMAT_MACROS 1
+#endif
+
#if !defined(__APPLE__)
#include <inttypes.h>
#endif