From 15ed853402433cbeabd6ee9e50af6f5ebaf59b3d Mon Sep 17 00:00:00 2001 From: kai Date: Wed, 13 Jun 2012 18:23:07 +0200 Subject: [PATCH] Add code to compile ldmd with MSVC. --- driver/ldmd.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/driver/ldmd.cpp b/driver/ldmd.cpp index a4a6dd9c74..6a9f59945f 100644 --- a/driver/ldmd.cpp +++ b/driver/ldmd.cpp @@ -50,6 +50,9 @@ #include #include #include +#if defined(_MSC_VER) +#include +#endif #include "llvm/Support/FileSystem.h" #include "llvm/Support/Program.h" #include "llvm/Support/SystemUtils.h" @@ -59,6 +62,10 @@ # include #endif +#if defined(_MSC_VER) +#define snprintf _snprintf +#endif + namespace ls = llvm::sys; // We reuse DMD's response file parsing routine for maximum compatibilty - it