comparison dmd/backend/glue.d @ 183:190ba98276b3

Several changes to make it build on posix systems. I've only tried to build on Mac OS X but it should build on Linux now as well. This should also fix ticket #9.
author Jacob Carlborg <doob@me.com>
date Mon, 25 Oct 2010 15:36:13 +0200
parents cd48cb899aee
children 9f4e5ac4f0a3
comparison
equal deleted inserted replaced
181:aa70dca07cb0 183:190ba98276b3
36 int go_flag(char* cp); 36 int go_flag(char* cp);
37 void util_set64(); 37 void util_set64();
38 void util_set386(); 38 void util_set386();
39 } 39 }
40 } 40 }
41 else version (OSX)
42 {
43 extern (C++)
44 {
45 int go_flag(char* cp);
46 void util_set64();
47 void util_set386();
48 }
49 }
41 else 50 else
42 { 51 {
43 static assert(false, "fix this"); 52 static assert(false, "fix this");
44 } 53 }
54
55 version (CPP_MANGLE)
56 extern (C++) char* cpp_mangle(Dsymbol s);
45 57
46 import std.exception; 58 import std.exception;
47 import std.string; 59 import std.string;
48 60
49 struct Outbuffer 61 struct Outbuffer