Add code to compile ldmd with MSVC.

This commit is contained in:
kai 2012-06-13 18:23:07 +02:00
parent 95cb8af435
commit 15ed853402

View file

@ -50,6 +50,9 @@
#include <cstdlib>
#include <numeric>
#include <vector>
#if defined(_MSC_VER)
#include <stdarg.h>
#endif
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/Program.h"
#include "llvm/Support/SystemUtils.h"
@ -59,6 +62,10 @@
# include <unistd.h>
#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