diff main.d @ 74:7e0d548de9e6

Switch Arrays of Dsymbols to the new templated Vector type
author Eldar Insafutdinov <e.insafutdinov@gmail.com>
date Sun, 29 Aug 2010 09:43:40 +0100
parents 6bdecc3f4569
children 43073c7c7769
line wrap: on
line diff
--- a/main.d	Sat Aug 28 19:42:41 2010 +0400
+++ b/main.d	Sun Aug 29 09:43:40 2010 +0100
@@ -40,6 +40,19 @@
 	EXIT_SUCCESS = 0,
 }
 
+version(Linux)
+{
+extern (C) extern __gshared bool rt_trapExceptions;
+
+static this() {
+	rt_trapExceptions = false;
+}
+
+}
+
+version(Windows)
+{
+
 version (Windows)
 {
     private import core.stdc.wchar_;
@@ -58,6 +71,14 @@
 shared bool _d_isHalting = false;
 __gshared string[] _d_args = null;
 
+version(Posix)
+{
+    extern (C) void _STI_monitor_staticctor();
+    extern (C) void _STD_monitor_staticdtor();
+    extern (C) void _STI_critical_init();
+    extern (C) void _STD_critical_term();
+}
+
 extern (C) void gc_init();
 extern (C) void gc_term();
 extern (C) void _minit();
@@ -178,6 +199,8 @@
     return result;
 }
 
+}
+
 int main(string[] args)
 {
     GC.disable();