[gnome-db] libgda patch for gcc-3.1 compatibility



I'm not a member of your list, so I don't know if you already have
libgda fixed for gcc-3.1 compatibility in your CVS tree, but in 
case you don't, the attached patch against 0.2.96 makes it work.

Enjoy,

Brandon Low
Gentoo GCC-3.1 Crusader
diff -Nru libgda-0.2.96/bindings/c++/gdaBatch.cpp libgda-0.2.96-new/bindings/c++/gdaBatch.cpp
--- libgda-0.2.96/bindings/c++/gdaBatch.cpp	Fri Dec  7 15:07:48 2001
+++ libgda-0.2.96-new/bindings/c++/gdaBatch.cpp	Wed Jul  3 15:01:30 2002
@@ -127,7 +127,7 @@
 }
 
 GdaBatch*
-Batch::getCStruct (bool refn = true) const
+Batch::getCStruct (bool refn) const
 {
 	if (refn)
 	  ref ();
diff -Nru libgda-0.2.96/bindings/c++/gdaCommand.cpp libgda-0.2.96-new/bindings/c++/gdaCommand.cpp
--- libgda-0.2.96/bindings/c++/gdaCommand.cpp	Fri Dec  7 15:07:48 2001
+++ libgda-0.2.96-new/bindings/c++/gdaCommand.cpp	Wed Jul  3 15:01:57 2002
@@ -139,7 +139,7 @@
 */
 
 GdaCommand*
-Command::getCStruct (bool refn = true) const
+Command::getCStruct (bool refn) const
 {
 	if (refn)
 		ref ();
diff -Nru libgda-0.2.96/bindings/c++/gdaConnection.cpp libgda-0.2.96-new/bindings/c++/gdaConnection.cpp
--- libgda-0.2.96/bindings/c++/gdaConnection.cpp	Fri Dec  7 15:07:48 2001
+++ libgda-0.2.96-new/bindings/c++/gdaConnection.cpp	Wed Jul  3 15:02:59 2002
@@ -294,7 +294,7 @@
 	return gda_connection_get_version (_gda_connection);
 }
 
-GdaConnection* Connection::getCStruct (bool refn = true) const
+GdaConnection* Connection::getCStruct (bool refn) const
 {
 	if (refn) ref ();
 	return _gda_connection;
diff -Nru libgda-0.2.96/bindings/c++/gdaConnection.h libgda-0.2.96-new/bindings/c++/gdaConnection.h
--- libgda-0.2.96/bindings/c++/gdaConnection.h	Fri Dec  7 15:07:48 2001
+++ libgda-0.2.96-new/bindings/c++/gdaConnection.h	Wed Jul  3 15:01:08 2002
@@ -20,6 +20,8 @@
 #ifndef __gda_bindings_cpp_gdaConnectionH
 #define __gda_bindings_cpp_gdaConnectionH
 
+using namespace std;
+
 namespace gda {
 
 class Recordset;
diff -Nru libgda-0.2.96/bindings/c++/gdaError.cpp libgda-0.2.96-new/bindings/c++/gdaError.cpp
--- libgda-0.2.96/bindings/c++/gdaError.cpp	Fri Dec  7 15:07:48 2001
+++ libgda-0.2.96-new/bindings/c++/gdaError.cpp	Wed Jul  3 15:03:35 2002
@@ -98,7 +98,7 @@
 }
 
 GdaError*
-Error::getCStruct (bool refn = true) const
+Error::getCStruct (bool refn) const
 {
 	if (refn) ref ();
 	return _gda_error;
diff -Nru libgda-0.2.96/bindings/c++/gdaField.cpp libgda-0.2.96-new/bindings/c++/gdaField.cpp
--- libgda-0.2.96/bindings/c++/gdaField.cpp	Tue Dec 11 14:16:14 2001
+++ libgda-0.2.96-new/bindings/c++/gdaField.cpp	Wed Jul  3 15:04:11 2002
@@ -428,7 +428,7 @@
 }
 
 GdaField*
-Field::getCStruct (bool refn = true) const
+Field::getCStruct (bool refn) const
 {
 	if (refn) ref ();
 	return _gda_field;
diff -Nru libgda-0.2.96/bindings/c++/gdaHelpers.h libgda-0.2.96-new/bindings/c++/gdaHelpers.h
--- libgda-0.2.96/bindings/c++/gdaHelpers.h	Sun Nov 18 11:21:55 2001
+++ libgda-0.2.96-new/bindings/c++/gdaHelpers.h	Wed Jul  3 15:05:34 2002
@@ -19,6 +19,8 @@
 //#ifndef __gda_helpers_cpp_gdaHelpersH
 //#define __gda_helpers_cpp_gdaHelpersH
 
+using namespace std;
+
 namespace gda {
 string gda_return_string (gchar* pszString);
 };
diff -Nru libgda-0.2.96/bindings/c++/gdaRecordset.cpp libgda-0.2.96-new/bindings/c++/gdaRecordset.cpp
--- libgda-0.2.96/bindings/c++/gdaRecordset.cpp	Fri Dec  7 15:07:48 2001
+++ libgda-0.2.96-new/bindings/c++/gdaRecordset.cpp	Wed Jul  3 15:06:00 2002
@@ -254,7 +254,7 @@
 }
 
 GdaRecordset*
-Recordset::getCStruct (bool refn = true) const
+Recordset::getCStruct (bool refn) const
 {
 	if (refn) ref ();
 	return _gda_recordset;

Attachment: pgpLJY7V2SW2N.pgp
Description: PGP signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]