openbabel/openbabel-gcc43.patch
2008-01-07 22:31:15 +00:00

175 lines
7.2 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-07 23:15:46.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-07 23:15:46.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-07 23:15:46.000000000 +0100
@@ -26,6 +26,8 @@ obtained in part or whole from RasMol2 b
// File Includes
///////////////////////////////////////////////////////////////////////////////
+#include <cstring>
+
#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-07 23:15:46.000000000 +0100
@@ -25,7 +25,7 @@ GNU General Public License for more deta
#include <algorithm>
#include <vector>
#include <string>
-
+#include <cstring>
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-07 23:15:46.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-07 23:15:46.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-07 23:15:46.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-07 23:15:46.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/scripts/perl/openbabel_perl.cpp.gcc43 openbabel-2.1.1/scripts/perl/openbabel_perl.cpp
--- openbabel-2.1.1/scripts/perl/openbabel_perl.cpp.gcc43 2007-07-01 22:14:02.000000000 +0200
+++ openbabel-2.1.1/scripts/perl/openbabel_perl.cpp 2008-01-07 23:30:21.000000000 +0100
@@ -812,6 +812,8 @@ extern "C" {
/* -----------------------------------------------------------------------------
* error manipulation
* ----------------------------------------------------------------------------- */
+SWIGINTERN const char*
+SWIG_Perl_ErrorType(int code) __attribute__((noinline));
SWIGINTERN const char*
SWIG_Perl_ErrorType(int code) {
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 2007-02-26 17:28:03.000000000 +0100
+++ openbabel-2.1.1/include/openbabel/xml.h 2008-01-07 23:15:46.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-07 23:15:46.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-07 23:15:46.000000000 +0100
@@ -23,7 +23,7 @@ GNU General Public License for more deta
#include <openbabel/babelconfig.h>
#include <stdio.h>
-
+#include <cstring>
#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-07 23:15:46.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-07 23:15:46.000000000 +0100
@@ -21,6 +21,7 @@ General Public License for more details.
#define OB_LINEEND_H
#include <streambuf>
+#include <climits>
#ifndef OBCONV
#define OBCONV
diff -up openbabel-2.1.1/tools/babel.cpp.gcc43 openbabel-2.1.1/tools/babel.cpp
--- openbabel-2.1.1/tools/babel.cpp.gcc43 2007-07-07 08:35:54.000000000 +0200
+++ openbabel-2.1.1/tools/babel.cpp 2008-01-07 23:15:46.000000000 +0100
@@ -35,6 +35,7 @@ GNU General Public License for more deta
#include <conio.h>
#endif
#include <cstdlib>
+#include <cstring>
#if !HAVE_STRNCASECMP
extern "C" int strncasecmp(const char *s1, const char *s2, size_t n);