[compiler-rt] r198650 - Explicitly enable PRIu64 by defining __STDC_FORMAT_MACROS if it isn't

Kaelyn Uhrain rikka at google.com
Mon Jan 6 16:29:19 PST 2014


Author: rikka
Date: Mon Jan  6 18:29:19 2014
New Revision: 198650

URL: http://llvm.org/viewvc/llvm-project?rev=198650&view=rev
Log:
Explicitly enable PRIu64 by defining __STDC_FORMAT_MACROS if it isn't
yet defined.

Modified:
    compiler-rt/trunk/lib/profile/PGOProfiling.c

Modified: compiler-rt/trunk/lib/profile/PGOProfiling.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/profile/PGOProfiling.c?rev=198650&r1=198649&r2=198650&view=diff
==============================================================================
--- compiler-rt/trunk/lib/profile/PGOProfiling.c (original)
+++ compiler-rt/trunk/lib/profile/PGOProfiling.c Mon Jan  6 18:29:19 2014
@@ -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





More information about the llvm-commits mailing list