forked from mirror/openmw-tes3mp
bug #348: workaround for boost older than 1.44
This commit is contained in:
parent
defab0e4b5
commit
03cccee0e4
2 changed files with 15 additions and 2 deletions
|
@ -3,8 +3,6 @@
|
||||||
#include <OgrePrerequisites.h>
|
#include <OgrePrerequisites.h>
|
||||||
#include <OgreRoot.h>
|
#include <OgreRoot.h>
|
||||||
|
|
||||||
#include <boost/filesystem.hpp>
|
|
||||||
|
|
||||||
namespace Files {
|
namespace Files {
|
||||||
|
|
||||||
bool loadOgrePlugin(const std::string &pluginDir, std::string pluginName, Ogre::Root &ogreRoot) {
|
bool loadOgrePlugin(const std::string &pluginDir, std::string pluginName, Ogre::Root &ogreRoot) {
|
||||||
|
|
|
@ -25,10 +25,25 @@
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
#include <boost/filesystem.hpp>
|
||||||
|
#include <boost/version.hpp>
|
||||||
|
|
||||||
namespace Ogre {
|
namespace Ogre {
|
||||||
class Root;
|
class Root;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if (BOOST_VERSION <= 104300)
|
||||||
|
#error BOOST_VERSION
|
||||||
|
namespace boost {
|
||||||
|
namespace filesystem {
|
||||||
|
path absolute(const path& p, const path& base=current_path()) {
|
||||||
|
// call obsolete version of this function on older boost
|
||||||
|
return complete(p, base);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif /* (BOOST_VERSION <= 104300) */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \namespace Files
|
* \namespace Files
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue