mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-28 01:23:14 +01:00
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:
16
gen/main.cpp
16
gen/main.cpp
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user