changeset 156:969e7de37c3d default tip

Fixes to get dwt to work with dmd and ldc
author Jacob Carlborg <doob@me.com>
date Wed, 08 Jul 2009 21:56:44 +0200
parents e91dcbf77cc7
children
files dsss.conf dwt/graphics/TextLayout.d dwt/internal/objc/runtime.d
diffstat 3 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/dsss.conf	Mon Jul 06 21:17:03 2009 +0200
+++ b/dsss.conf	Wed Jul 08 21:56:44 2009 +0200
@@ -5,7 +5,7 @@
 }
 
 version (LDC){
-    buildflags += -Jres -L=-framework=Cocoa -L=-framework=Carbon -L=-lxpcomglue -L=-lstdc++
+    buildflags += -Jres -L-framework -LCocoa -L-framework -LCarbon -L-lxpcomglue -L-lstdc++
 	exclude=dwt/browser
 }
 
--- a/dwt/graphics/TextLayout.d	Mon Jul 06 21:17:03 2009 +0200
+++ b/dwt/graphics/TextLayout.d	Wed Jul 08 21:56:44 2009 +0200
@@ -482,7 +482,7 @@
                                     path.setLineWidth(2f);
                                     path.setLineCapStyle(OS.NSRoundLineCapStyle);
                                     path.setLineJoinStyle(OS.NSRoundLineJoinStyle);
-                                    path.setLineDash([1.0, 3.0].ptr, 2, cast(Carbon.CGFloat) 0);
+                                    path.setLineDash([1.0f, 3.0f].ptr, 2, cast(Carbon.CGFloat) 0);
                                     point.x = underlineX;
                                     point.y = underlineY + 0.5f;
                                     path.moveToPoint(point);
--- a/dwt/internal/objc/runtime.d	Mon Jul 06 21:17:03 2009 +0200
+++ b/dwt/internal/objc/runtime.d	Wed Jul 08 21:56:44 2009 +0200
@@ -213,8 +213,8 @@
     
     else
     {
-        alias extern (C) T function (id, SEL, ARGS) fp;
-        *stretAddr = (*cast(fp)&dwt.internal.objc.bindings.objc_msgSend)(theReceiver, theSelector, args);
+        alias extern (C) T* function (id, SEL, ARGS) fp;
+        stretAddr = (cast(fp)&dwt.internal.objc.bindings.objc_msgSend)(theReceiver, theSelector, args);
     }
 }