From 5134de71c0d6d243ecef7cd04390ce0356e65d69 Mon Sep 17 00:00:00 2001 From: Matt Pharr Date: Mon, 9 Jan 2012 09:05:20 -0800 Subject: [PATCH] Fix Windows build (inttypes.h not available) --- cbackend.cpp | 3 +++ expr.cpp | 2 ++ 2 files changed, 5 insertions(+) diff --git a/cbackend.cpp b/cbackend.cpp index 5fe87264..96f54c23 100644 --- a/cbackend.cpp +++ b/cbackend.cpp @@ -16,7 +16,10 @@ #warning "The C++ backend isn't supported when building with LLVM 2.9" #else +#ifndef _MSC_VER #include +#endif + #ifndef PRIx64 #define PRIx64 "llx" #endif diff --git a/expr.cpp b/expr.cpp index f94245d5..c424f3c2 100644 --- a/expr.cpp +++ b/expr.cpp @@ -43,7 +43,9 @@ #include "module.h" #include "util.h" #include "llvmutil.h" +#ifndef _MSC_VER #include +#endif #ifndef PRId64 #define PRId64 "lld" #endif