From ff09af2812bdb7438bc52519a662321480e14f5a Mon Sep 17 00:00:00 2001 From: DennisOSRM Date: Sun, 3 Mar 2013 17:38:35 +0100 Subject: [PATCH] Fixes #597, compile issues with boost filesystem2. --- Contractor/TemporaryStorage.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Contractor/TemporaryStorage.h b/Contractor/TemporaryStorage.h index 69b35e701..63099c7f9 100644 --- a/Contractor/TemporaryStorage.h +++ b/Contractor/TemporaryStorage.h @@ -33,8 +33,8 @@ //This is one big workaround for latest boost renaming woes. -#ifndef BOOST_FILESYSTEM_VERSION -#warning Boost Installation with Filesystem3 (>=1.44) is required, activating workaround +#if BOOST_FILESYSTEM_VERSION < 3 +#warning Boost Installation with Filesystem3 missing, activating workaround #include namespace boost { namespace filesystem { @@ -54,8 +54,9 @@ inline path unique_path(const path&) { #endif +#ifndef BOOST_FILESYSTEM_VERSION #define BOOST_FILESYSTEM_VERSION 3 - +#endif /** * This class implements a singleton file storage for temporary data. * temporary slots can be accessed by other objects through an int