diff dmd/class.c @ 875:330f999ade44

Merged DMD 1.038
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Tue, 06 Jan 2009 16:33:51 +0100
parents 69a5e4a6fc0f
children b30fe7e1dbb9
line wrap: on
line diff
--- a/dmd/class.c	Tue Jan 06 15:54:48 2009 +0100
+++ b/dmd/class.c	Tue Jan 06 16:33:51 2009 +0100
@@ -539,7 +539,16 @@
     sc->inunion = 0;
 
     if (isCOMclass())
+    {
+#if _WIN32
 	sc->linkage = LINKwindows;
+#else
+	/* This enables us to use COM objects under Linux and
+	 * work with things like XPCOM
+	 */
+	sc->linkage = LINKc;
+#endif
+    }
     sc->protection = PROTpublic;
     sc->explicitProtection = 0;
     sc->structalign = 8;