diff options
author | don bright <hugh.m.bright@gmail.com> | 2012-08-23 05:32:55 (GMT) |
---|---|---|
committer | don bright <hugh.m.bright@gmail.com> | 2012-08-23 05:32:55 (GMT) |
commit | 44d88f400141f67d57aa731c4829f804bf49d5b4 (patch) | |
tree | 8480542516bb898c0df1c2fb6e158b6c32c5ca71 /src/boosty.h | |
parent | 51b83ff8ddf75fe9ba7f489e827ed6b9261dca4f (diff) |
compile fix, boost>=1.44 can use boost filesystem v3
if you pass BOOST_FILESYSTEM_VERSION=3 as a compiler define but try to
use boost filesystem v2 functions on these older boosts, (1.44, 1.45,
etc) you get compilation errors. by changing the boost version detection for v3,
we prevent the compile error.
Diffstat (limited to 'src/boosty.h')
-rw-r--r-- | src/boosty.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/boosty.h b/src/boosty.h index 2e7d76b..87260ff 100644 --- a/src/boosty.h +++ b/src/boosty.h @@ -1,5 +1,6 @@ // boosty.h copyright 2012 don bright. released under the GPL 2, or later, // as described in the file named 'COPYING' in OpenSCAD's project root. +// permission is given to Marius Kintel & Clifford Wolf to change this license. #ifndef boosty_h_ #define boosty_h_ @@ -16,6 +17,7 @@ see also http://www.boost.org/doc/libs/1_48_0/libs/filesystem/v3/doc/index.htm + http://www.boost.org/doc/libs/1_45_0/libs/filesystem/v2/doc/index.htm http://www.boost.org/doc/libs/1_42_0/libs/filesystem/doc/index.htm http://www.boost.org/doc/libs/1_35_0/libs/filesystem/doc/index.htm include/boost/wave/util/filesystem_compatability.hpp @@ -29,7 +31,7 @@ namespace fs = boost::filesystem; namespace boosty { -#if BOOST_VERSION >= 104600 && BOOST_FILESYSTEM_VERSION >= 3 +#if BOOST_VERSION >= 104400 && BOOST_FILESYSTEM_VERSION >= 3 inline bool is_absolute( fs::path p ) { |