FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[patch] For builds with DMD 1.051

 
Post new topic   Reply to topic     Forum Index -> gtkD
View previous topic :: View next topic  
Author Message
heromyth



Joined: 26 Nov 2006
Posts: 46

PostPosted: Sun Nov 29, 2009 12:37 am    Post subject: [patch] For builds with DMD 1.051 Reply with quote

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
Back to top
View user's profile Send private message
Mike Wey



Joined: 07 May 2007
Posts: 428

PostPosted: Sun Nov 29, 2009 4:46 am    Post subject: Reply with quote

added in svn r729
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> gtkD All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group