Skip to content

Commit

Permalink
Updates for Xerces-3 and boost 1.38
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafał Rusin committed Feb 8, 2010
1 parent 047fa09 commit 6894c29
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions cbootstrap
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
rm -rf build
mkdir build
cd build
#cmake .. -DWITHOUT_GMP=1
cmake .. -DWITHOUT_GMP=1

cmake ..
#cmake ..
2 changes: 1 addition & 1 deletion cmake/FindBoost.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ else (BOOST_LIBRARIES AND BOOST_INCLUDE_DIRS)
#message(STATUS "trying paths ${BOOST_LIBRARIES_SEARCH_DIRS}")


foreach (TMP_BOOST_LIBRARIES_SUFFIX "" ${BOOST_LIBRARIES_SUFFIXES})
foreach (TMP_BOOST_LIBRARIES_SUFFIX "" "-mt" ${BOOST_LIBRARIES_SUFFIXES})
# message(STATUS "trying boost_date_time${TMP_BOOST_LIBRARIES_SUFFIX}")

if (NOT BOOST_DATE_TIME_LIBRARY)
Expand Down
2 changes: 1 addition & 1 deletion examples/geoip/cmake/FindBoost.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ else (BOOST_LIBRARIES AND BOOST_INCLUDE_DIRS)
#message(STATUS "trying paths ${BOOST_LIBRARIES_SEARCH_DIRS}")


foreach (TMP_BOOST_LIBRARIES_SUFFIX "" ${BOOST_LIBRARIES_SUFFIXES})
foreach (TMP_BOOST_LIBRARIES_SUFFIX "" "-mt" ${BOOST_LIBRARIES_SUFFIXES})
# message(STATUS "trying boost_date_time${TMP_BOOST_LIBRARIES_SUFFIX}")

if (NOT BOOST_DATE_TIME_LIBRARY)
Expand Down
2 changes: 1 addition & 1 deletion src/xmlbeansxx/XercesParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#include <set>

#include <xercesc/framework/XMLGrammarPool.hpp>
#include <xercesc/internal/XMLGrammarPoolImpl.hpp>
//#include <xercesc/internal/XMLGrammarPoolImpl.hpp>
#include <xercesc/util/XMLUni.hpp>
#include <xercesc/sax2/XMLReaderFactory.hpp>
#include "ContentsImpl.h"
Expand Down
3 changes: 3 additions & 0 deletions src/xmlbeansxx/XercesUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ namespace xmlbeansxx {


#if (XERCES_VERSION_MAJOR == 3)
#include <xercesc/util/XMLUni.hpp>

// for xerces 3.0
/** Provides a xerces input stream to read from std::istream */
class BinStdInputStream: public xercesc::BinInputStream {
Expand All @@ -46,6 +48,7 @@ class BinStdInputStream: public xercesc::BinInputStream {
BinStdInputStream(std::istream &in);
XMLFilePos curPos() const;
XMLSize_t readBytes(XMLByte *const toFill,const XMLSize_t maxToRead);
virtual const XMLCh* getContentType() const { return XERCES_CPP_NAMESPACE::XMLUni::fgUTF8EncodingString; }
};

/** Provides a xerces XMLFormatTarget that writes to String. */
Expand Down

0 comments on commit 6894c29

Please sign in to comment.