Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 10, 2011, 9:03:59 PM (14 years ago)
Author:
rgrieder
Message:

Resolved problems with different Boost filesystem versions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/kicklib/src/libraries/core/GraphicsManager.cc

    r8129 r8225  
    6161#include "command/ConsoleCommand.h"
    6262
     63// Differentiate Boost Filesystem v2 and v3
     64#if (BOOST_FILESYSTEM_VERSION < 3)
     65#  define BF_NATIVE_STRING file_string
     66#else
     67#  define BF_NATIVE_STRING string
     68#endif
     69
    6370namespace orxonox
    6471{
     
    243250        // Use backslash paths on Windows! file_string() already does that though.
    244251        for (unsigned int i = 0; i < plugins.size(); ++i)
    245 #if BOOST_FILESYSTEM_VERSION < 3
    246             ogreRoot_->loadPlugin((folder / plugins[i]).file_string());
    247 #else
    248             ogreRoot_->loadPlugin((folder / plugins[i]).string());
    249 #endif
     252            ogreRoot_->loadPlugin((folder / plugins[i]).BF_NATIVE_STRING());
    250253    }
    251254
Note: See TracChangeset for help on using the changeset viewer.