bug #348: workaround for boost older than 1.44

pull/21/head
Nikolay Kasyanov 13 years ago
parent defab0e4b5
commit 03cccee0e4

@ -3,8 +3,6 @@
#include <OgrePrerequisites.h>
#include <OgreRoot.h>
#include <boost/filesystem.hpp>
namespace Files {
bool loadOgrePlugin(const std::string &pluginDir, std::string pluginName, Ogre::Root &ogreRoot) {

@ -25,10 +25,25 @@
#include <string>
#include <boost/filesystem.hpp>
#include <boost/version.hpp>
namespace Ogre {
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
*/

Loading…
Cancel
Save