openbabel/openbabel-gcc43.patch

152 lines
6.1 KiB
Diff

diff -up openbabel-2.1.1/src/dlhandler_unix.cpp.gcc43 openbabel-2.1.1/src/dlhandler_unix.cpp
--- openbabel-2.1.1/src/dlhandler_unix.cpp.gcc43 2007-04-14 02:34:11.000000000 +0200
+++ openbabel-2.1.1/src/dlhandler_unix.cpp 2008-01-06 20:50:56.000000000 +0100
@@ -25,6 +25,7 @@ GNU General Public License for more deta
#include <sys/stat.h>
#include <dlfcn.h>
#include <cstdlib>
+#include <cstring>
using namespace std;
diff -up openbabel-2.1.1/src/zipstreamimpl.h.gcc43 openbabel-2.1.1/src/zipstreamimpl.h
--- openbabel-2.1.1/src/zipstreamimpl.h.gcc43 2006-12-28 16:19:05.000000000 +0100
+++ openbabel-2.1.1/src/zipstreamimpl.h 2008-01-06 19:28:16.000000000 +0100
@@ -31,6 +31,8 @@ Altered by: Geoffrey Hutchison 2005 for
minor namespace modifications, VC++ compatibility
*/
+#include <string.h>
+
//*****************************************************************************
// template class basic_zip_streambuf
//*****************************************************************************
diff -up openbabel-2.1.1/src/residue.cpp.gcc43 openbabel-2.1.1/src/residue.cpp
--- openbabel-2.1.1/src/residue.cpp.gcc43 2007-01-05 17:29:49.000000000 +0100
+++ openbabel-2.1.1/src/residue.cpp 2008-01-06 20:02:27.000000000 +0100
@@ -26,6 +26,8 @@ obtained in part or whole from RasMol2 b
// File Includes
///////////////////////////////////////////////////////////////////////////////
+#include <string.h>
+
#include <openbabel/babelconfig.h>
#include <openbabel/residue.h>
diff -up openbabel-2.1.1/src/tokenst.cpp.gcc43 openbabel-2.1.1/src/tokenst.cpp
--- openbabel-2.1.1/src/tokenst.cpp.gcc43 2006-12-28 16:21:51.000000000 +0100
+++ openbabel-2.1.1/src/tokenst.cpp 2008-01-06 20:33:49.000000000 +0100
@@ -25,7 +25,7 @@ GNU General Public License for more deta
#include <algorithm>
#include <vector>
#include <string>
-
+#include <string.h>
using namespace std;
diff -up openbabel-2.1.1/src/obconversion.cpp.gcc43 openbabel-2.1.1/src/obconversion.cpp
--- openbabel-2.1.1/src/obconversion.cpp.gcc43 2007-07-01 21:16:17.000000000 +0200
+++ openbabel-2.1.1/src/obconversion.cpp 2008-01-06 19:48:30.000000000 +0100
@@ -37,6 +37,7 @@ GNU General Public License for more deta
#include <sstream>
#include <string>
#include <map>
+#include <typeinfo>
#include <openbabel/obconversion.h>
diff -up openbabel-2.1.1/src/formats/rxnformat.cpp.gcc43 openbabel-2.1.1/src/formats/rxnformat.cpp
--- openbabel-2.1.1/src/formats/rxnformat.cpp.gcc43 2007-03-12 15:23:38.000000000 +0100
+++ openbabel-2.1.1/src/formats/rxnformat.cpp 2008-01-06 21:27:56.000000000 +0100
@@ -18,6 +18,8 @@ GNU General Public License for more deta
#pragma warning (disable : 4251) //
#endif
+#include <typeinfo>
+
#include <openbabel/babelconfig.h>
#include <openbabel/mol.h>
diff -up openbabel-2.1.1/src/formats/fchkformat.cpp.gcc43 openbabel-2.1.1/src/formats/fchkformat.cpp
--- openbabel-2.1.1/src/formats/fchkformat.cpp.gcc43 2007-03-12 18:42:23.000000000 +0100
+++ openbabel-2.1.1/src/formats/fchkformat.cpp 2008-01-06 21:27:44.000000000 +0100
@@ -12,6 +12,7 @@ GNU General Public License for more deta
***********************************************************************/
#include <numeric>
+#include <typeinfo>
// No diagnoalization yet. Perhaps for 2.2 -GRH
// #include <eigen/matrix.h>
diff -up openbabel-2.1.1/src/fingerprint.cpp.gcc43 openbabel-2.1.1/src/fingerprint.cpp
--- openbabel-2.1.1/src/fingerprint.cpp.gcc43 2007-06-02 15:56:31.000000000 +0200
+++ openbabel-2.1.1/src/fingerprint.cpp 2008-01-06 19:17:45.000000000 +0100
@@ -21,7 +21,7 @@ GNU General Public License for more deta
#include <vector>
#include <algorithm>
#include <iosfwd>
-#include <vector>
+#include <cstring>
#include <fstream>
#include <openbabel/fingerprint.h>
diff -up openbabel-2.1.1/include/openbabel/xml.h.gcc43 openbabel-2.1.1/include/openbabel/xml.h
--- openbabel-2.1.1/include/openbabel/xml.h.gcc43 2008-01-06 21:15:09.000000000 +0100
+++ openbabel-2.1.1/include/openbabel/xml.h 2008-01-06 21:14:42.000000000 +0100
@@ -13,6 +13,8 @@ MERCHANTABILITY or FITNESS FOR A PARTICU
GNU General Public License for more details.
***********************************************************************/
+#include <typeinfo>
+
#include <openbabel/mol.h>
#include <openbabel/obconversion.h>
#include <openbabel/obmolecformat.h>
diff -up openbabel-2.1.1/include/openbabel/obconversion.h.gcc43 openbabel-2.1.1/include/openbabel/obconversion.h
--- openbabel-2.1.1/include/openbabel/obconversion.h.gcc43 2007-06-02 15:56:37.000000000 +0200
+++ openbabel-2.1.1/include/openbabel/obconversion.h 2008-01-06 19:26:57.000000000 +0100
@@ -28,6 +28,7 @@ GNU General Public License for more deta
#include <string>
#include <vector>
#include <map>
+#include <strings.h>
#include <openbabel/dlhandler.h>
#include <openbabel/oberror.h>
diff -up openbabel-2.1.1/include/openbabel/data.h.gcc43 openbabel-2.1.1/include/openbabel/data.h
--- openbabel-2.1.1/include/openbabel/data.h.gcc43 2007-04-14 02:34:14.000000000 +0200
+++ openbabel-2.1.1/include/openbabel/data.h 2008-01-06 19:03:06.000000000 +0100
@@ -23,7 +23,7 @@ GNU General Public License for more deta
#include <openbabel/babelconfig.h>
#include <stdio.h>
-
+#include <string.h>
#include <fstream>
#include <vector>
#include <string>
diff -up openbabel-2.1.1/include/openbabel/obmolecformat.h.gcc43 openbabel-2.1.1/include/openbabel/obmolecformat.h
--- openbabel-2.1.1/include/openbabel/obmolecformat.h.gcc43 2007-02-26 17:46:15.000000000 +0100
+++ openbabel-2.1.1/include/openbabel/obmolecformat.h 2008-01-06 21:14:18.000000000 +0100
@@ -23,6 +23,8 @@ GNU General Public License for more deta
#include <hash_map>
#endif
+#include <typeinfo>
+
#include <openbabel/mol.h>
#include <openbabel/obconversion.h>
diff -up openbabel-2.1.1/include/openbabel/lineend.h.gcc43 openbabel-2.1.1/include/openbabel/lineend.h
--- openbabel-2.1.1/include/openbabel/lineend.h.gcc43 2007-06-02 15:56:39.000000000 +0200
+++ openbabel-2.1.1/include/openbabel/lineend.h 2008-01-06 21:06:17.000000000 +0100
@@ -21,6 +21,7 @@ General Public License for more details.
#define OB_LINEEND_H
#include <streambuf>
+#include <climits>
#ifndef OBCONV
#define OBCONV