Compile LDC2 with VS2010 64bit (LDC changes only).

Contains all changes necessary to LDC specific source to compile LDC2 with VS2010. See https://github.com/D-Programming-Language/dmd/pull/516 for necessary changes to DMDFE.
This commit is contained in:
kai
2012-01-11 07:49:21 +01:00
parent 43057c64ec
commit 6726b5da13
9 changed files with 93 additions and 15 deletions

View File

@@ -18,12 +18,6 @@
#include <assert.h>
#include <limits.h>
#if POSIX
#include <errno.h>
#elif _WIN32
#include <windows.h>
#endif
#include "rmem.h"
#include "root.h"
@@ -49,6 +43,12 @@ using namespace opts;
#include "gen/configfile.h"
#if POSIX
#include <errno.h>
#elif _WIN32
#include <windows.h>
#endif
#if DMDV1
typedef Array Modules;
#endif
@@ -127,7 +127,7 @@ static void initFromString(char*& dest, const cl::opt<std::string>& src) {
}
}
#if _WIN32
#if _WIN32 && __DMC__
extern "C"
{
extern int _xi_a;
@@ -139,7 +139,7 @@ int main(int argc, char** argv)
{
mem.init(); // initialize storage allocator
mem.setStackBottom(&argv);
#if _WIN32
#if _WIN32 && __DMC__
mem.addroots((char *)&_xi_a, (char *)&_end);
#endif