heromyth
Joined: 26 Nov 2006 Posts: 46
|
Posted: Sun Nov 29, 2009 12:37 am Post subject: [patch] For builds with DMD 1.051 |
|
|
It's just a minor patch for builds with DMD 1.051.
Code: | Index: srcgl/glgtk/GLCapability.d
===================================================================
--- srcgl/glgtk/GLCapability.d (version 728)
+++ srcgl/glgtk/GLCapability.d (working copy)
@@ -194,7 +194,7 @@
/*** OpenGL BEGIN ***/
if ( !drawable.glBegin(context) )
{
- return false;
+ return ;
}
/*** do user actions ***/
@@ -309,7 +309,7 @@
/*** OpenGL BEGIN ***/
if ( !drawable.glBegin(context) )
{
- return false;
+ return ;
}
/*** do user actions ***/
@@ -340,7 +340,7 @@
/*** OpenGL BEGIN ***/
if ( !drawable.glBegin(context) )
{
- return false;
+ return ;
}
/*** do user actions ***/
Index: srcgstreamer/gstreamer/TypeFind.d
===================================================================
--- srcgstreamer/gstreamer/TypeFind.d (version 728)
+++ srcgstreamer/gstreamer/TypeFind.d (working copy)
@@ -122,7 +122,7 @@
* size = The number of bytes to return
* Returns: the requested data, or NULL if that data is not available.
*/
- public byte* peek(long offset, uint size)
+ public ubyte* peek(long offset, uint size)
{
// guint8* gst_type_find_peek (GstTypeFind *find, gint64 offset, guint size);
return gst_type_find_peek(gstTypeFind, offset, size);
|
The error logs (Building tool is CMakeD) are blown:
Code: | [104%] Building D object demos/gl/CMakeFiles/ShapesGL_Release.dir/ShapesGL.obj
D:\DSource\gtkD\demos\gl\..\..\srcgl\glgtk\GLCapability.d(197): Error: long has
no effect in expression (false)
D:\DSource\gtkD\demos\gl\..\..\srcgl\glgtk\GLCapability.d(312): Error: long has
no effect in expression (false)
D:\DSource\gtkD\demos\gl\..\..\srcgl\glgtk\GLCapability.d(343): Error: long has
no effect in expression (false)
mingw32-make[2]: *** [demos/gl/CMakeFiles/ShapesGL_Release.dir/ShapesGL.obj] Err
or 1
mingw32-make[1]: *** [demos/gl/CMakeFiles/ShapesGL_Release.dir/all] Error 2
mingw32-make: *** [all] Error 2
D:\DSource\gtkD\srcgstreamer\gstreamer\TypeFind.d(128): Error: cannot implicitly
convert expression ((*c_gst_type_find_peek)(this.gstTypeFind,offset,size)) of t
ype ubyte* to byte*
mingw32-make[2]: *** [srcgstreamer/CMakeFiles/gstreamer_Release.dir/gstreamer/Ty
peFind.obj] Error 1
mingw32-make[1]: *** [srcgstreamer/CMakeFiles/gstreamer_Release.dir/all] Error 2
mingw32-make: *** [all] Error 2
|
|
|