mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-07 19:36:06 +03:00
Add code to compile ldmd with MSVC.
This commit is contained in:
parent
95cb8af435
commit
15ed853402
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue