[Gambas-devel] Gcc4 patch against gb.net.curl
Daniel Campos
danielcampos at ...45...
Mon Jun 27 20:41:13 CEST 2005
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
>
>
>
>
More information about the Devel
mailing list