- fix build with gcc-4.3, take 10
This commit is contained in:
parent
5a8009c0f3
commit
71a898e386
@ -16,7 +16,7 @@ diff -up openbabel-2.1.1/src/zipstreamimpl.h.gcc43 openbabel-2.1.1/src/zipstream
|
||||
minor namespace modifications, VC++ compatibility
|
||||
*/
|
||||
|
||||
+#include <string.h>
|
||||
+#include <cstring>
|
||||
+
|
||||
//*****************************************************************************
|
||||
// template class basic_zip_streambuf
|
||||
@ -28,7 +28,7 @@ diff -up openbabel-2.1.1/src/residue.cpp.gcc43 openbabel-2.1.1/src/residue.cpp
|
||||
// File Includes
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
+#include <string.h>
|
||||
+#include <cstring>
|
||||
+
|
||||
#include <openbabel/babelconfig.h>
|
||||
|
||||
@ -41,7 +41,7 @@ diff -up openbabel-2.1.1/src/tokenst.cpp.gcc43 openbabel-2.1.1/src/tokenst.cpp
|
||||
#include <vector>
|
||||
#include <string>
|
||||
-
|
||||
+#include <string.h>
|
||||
+#include <cstring>
|
||||
|
||||
using namespace std;
|
||||
|
||||
@ -122,7 +122,7 @@ diff -up openbabel-2.1.1/include/openbabel/data.h.gcc43 openbabel-2.1.1/include/
|
||||
|
||||
#include <stdio.h>
|
||||
-
|
||||
+#include <string.h>
|
||||
+#include <cstring>
|
||||
#include <fstream>
|
||||
#include <vector>
|
||||
#include <string>
|
||||
@ -149,3 +149,14 @@ diff -up openbabel-2.1.1/include/openbabel/lineend.h.gcc43 openbabel-2.1.1/inclu
|
||||
|
||||
#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-06 21:38:49.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);
|
||||
|
Loading…
Reference in New Issue
Block a user