diff qt/QGlobal.d @ 125:76e5e8597a83

fixes for ldc on windows
author eldar
date Fri, 05 Jun 2009 14:54:20 +0000
parents 2a85b786fa3a
children 875d313c2778
line wrap: on
line diff
--- a/qt/QGlobal.d	Fri Jun 05 12:59:24 2009 +0000
+++ b/qt/QGlobal.d	Fri Jun 05 14:54:20 2009 +0000
@@ -28,12 +28,13 @@
 mixin QT_BEGIN_HEADER;
 mixin QT_BEGIN_NAMESPACE;
 
-version(Windows)
+extern(C) void __qtd_dummy() {}
+
+version(cpp_shared)
 {
-    export extern(C) void d_dummy() {}
     extern (C) void __qtd_qtd_core_initCallBacks(void* toUtf8, void* dummy);
     static this() {
-        __qtd_qtd_core_initCallBacks(&_d_toUtf8, &d_dummy);
+        __qtd_qtd_core_initCallBacks(&_d_toUtf8, &__qtd_dummy);
     }
 }