[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gambas-devel
Subject:    Re: [Gambas-devel] Gcc4 patch against gb.net.curl
From:       Daniel Campos <danielcampos () netcourrier ! com>
Date:       2005-06-27 18:41:13
Message-ID: 42C04849.3060300 () netcourrier ! com
[Download RAW message or body]

Hi:

I already modified gb.net.curl sources, you can find the new version
at http://gambas.gnulinex.org/net , and I suppose it will be included
in the next gambas-2 version.

However, thanks for your help!

Regards,

D. Campos


HUSSON Pierre-Hugues escribió:

>Hi,
>
>I'm using a distribution including a cvs version of gcc 4.0
>With it, gambas 1.9.10 doesn't build cause of the gb.net.curl module
>This patch delete only some casts.
>  
>
>------------------------------------------------------------------------
>
>diff -ur gambas2-1.9.10/gb.net.curl/src/CCurl.h gambas2-1.9.10.phh/gb.net.curl/src/CCurl.h
>--- gambas2-1.9.10/gb.net.curl/src/CCurl.h	2005-05-16 15:19:54.000000000 +0200
>+++ gambas2-1.9.10.phh/gb.net.curl/src/CCurl.h	2005-06-27 16:22:27.000000000 +0200
>@@ -39,11 +39,11 @@
> #else
> 
> #define THIS            ((CCURL *)_object)
>-#define THIS_STATUS     ((int)(((CCURL *)_object)->stream._free[1]))
>-#define THIS_CURL       ((CURL*)(((CCURL *)_object)->stream._free[2]))
>-#define THIS_URL        ((char*)(((CCURL *)_object)->stream._free[3]))
>-#define THIS_FILE       ((char*)(((CCURL *)_object)->stream._free[4]))
>-#define THIS_PROTOCOL   ((char*)(((CCURL *)_object)->stream._free[5]))
>+#define THIS_STATUS     ((CCURL *)_object)->stream._free[1]
>+#define THIS_CURL       ((CCURL *)_object)->stream._free[2]
>+#define THIS_URL        ((CCURL *)_object)->stream._free[3]
>+#define THIS_FILE       ((CCURL *)_object)->stream._free[4]
>+#define THIS_PROTOCOL   ((CCURL *)_object)->stream._free[5]
> 
> #endif
> 
>diff -ur gambas2-1.9.10/gb.net.curl/src/CFtpClient.h gambas2-1.9.10.phh/gb.net.curl/src/CFtpClient.h
>--- gambas2-1.9.10/gb.net.curl/src/CFtpClient.h	2005-05-16 15:01:06.000000000 +0200
>+++ gambas2-1.9.10.phh/gb.net.curl/src/CFtpClient.h	2005-06-27 16:24:28.000000000 +0200
>@@ -39,11 +39,11 @@
> #else
> 
> #define THIS            ((CFTPCLIENT *)_object)
>-#define THIS_STATUS     ((int)(((CFTPCLIENT *)_object)->stream._free[1]))
>-#define THIS_CURL       ((CURL*)(((CFTPCLIENT *)_object)->stream._free[2]))
>-#define THIS_URL        ((char*)(((CFTPCLIENT *)_object)->stream._free[3]))
>-#define THIS_FILE       ((char*)(((CFTPCLIENT *)_object)->stream._free[4]))
>-#define THIS_PROTOCOL   ((char*)(((CFTPCLIENT *)_object)->stream._free[5]))
>+#define THIS_STATUS     ((CFTPCLIENT *)_object)->stream._free[1]
>+#define THIS_CURL       ((CFTPCLIENT *)_object)->stream._free[2]
>+#define THIS_URL        ((CFTPCLIENT *)_object)->stream._free[3]
>+#define THIS_FILE       ((CFTPCLIENT *)_object)->stream._free[4]
>+#define THIS_PROTOCOL   ((CFTPCLIENT *)_object)->stream._free[5]
> 
> #endif
> 
>diff -ur gambas2-1.9.10/gb.net.curl/src/CHttpClient.h gambas2-1.9.10.phh/gb.net.curl/src/CHttpClient.h
>--- gambas2-1.9.10/gb.net.curl/src/CHttpClient.h	2005-05-16 15:00:44.000000000 +0200
>+++ gambas2-1.9.10.phh/gb.net.curl/src/CHttpClient.h	2005-06-27 16:23:50.000000000 +0200
>@@ -39,11 +39,11 @@
> #else
> 
> #define THIS            ((CHTTPCLIENT *)_object)
>-#define THIS_STATUS     ((int)(((CHTTPCLIENT *)_object)->stream._free[1]))
>-#define THIS_CURL       ((CURL*)(((CHTTPCLIENT *)_object)->stream._free[2]))
>-#define THIS_URL        ((char*)(((CHTTPCLIENT *)_object)->stream._free[3]))
>-#define THIS_FILE       ((char*)(((CHTTPCLIENT *)_object)->stream._free[4]))
>-#define THIS_PROTOCOL   ((char*)(((CHTTPCLIENT *)_object)->stream._free[5]))
>+#define THIS_STATUS     ((CHTTPCLIENT *)_object)->stream._free[1]
>+#define THIS_CURL       ((CHTTPCLIENT *)_object)->stream._free[2]
>+#define THIS_URL        ((CHTTPCLIENT *)_object)->stream._free[3]
>+#define THIS_FILE       ((CHTTPCLIENT *)_object)->stream._free[4]
>+#define THIS_PROTOCOL   ((CHTTPCLIENT *)_object)->stream._free[5]
> 
> #endif
> 
>
>  
>



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&opĚk
_______________________________________________
Gambas-devel mailing list
Gambas-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-devel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic