Explicitly enable PRIu64 by defining __STDC_FORMAT_MACROS if it isn't

yet defined.

llvm-svn: 198650
This commit is contained in:
Kaelyn Uhrain 2014-01-07 00:29:19 +00:00
parent ea278c3249
commit 9ee39534aa
1 changed files with 6 additions and 0 deletions

View File

@ -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