Fix Windows build (inttypes.h not available)

This commit is contained in:
Matt Pharr
2012-01-09 09:05:20 -08:00
parent 2be1251c70
commit 5134de71c0
2 changed files with 5 additions and 0 deletions

View File

@@ -16,7 +16,10 @@
#warning "The C++ backend isn't supported when building with LLVM 2.9"
#else
#ifndef _MSC_VER
#include <inttypes.h>
#endif
#ifndef PRIx64
#define PRIx64 "llx"
#endif

View File

@@ -43,7 +43,9 @@
#include "module.h"
#include "util.h"
#include "llvmutil.h"
#ifndef _MSC_VER
#include <inttypes.h>
#endif
#ifndef PRId64
#define PRId64 "lld"
#endif