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