Pyrogenesis  trunk
pch_boost.h
Go to the documentation of this file.
1 /* Copyright (c) 2015 Wildfire Games
2  *
3  * Permission is hereby granted, free of charge, to any person obtaining
4  * a copy of this software and associated documentation files (the
5  * "Software"), to deal in the Software without restriction, including
6  * without limitation the rights to use, copy, modify, merge, publish,
7  * distribute, sublicense, and/or sell copies of the Software, and to
8  * permit persons to whom the Software is furnished to do so, subject to
9  * the following conditions:
10  *
11  * The above copyright notice and this permission notice shall be included
12  * in all copies or substantial portions of the Software.
13  *
14  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17  * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
18  * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
19  * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
20  * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21  */
22 
23 #ifndef INCLUDED_PCH_BOOST
24 #define INCLUDED_PCH_BOOST
25 
27 
28 #if MSC_VERSION
29 # define BOOST_HAS_STDINT_H
30 #endif
31 
32 // Boost
33 // .. if this package isn't going to be statically linked, we're better off
34 // using Boost via DLL. (otherwise, we would have to ensure the exact same
35 // compiler is used, which is a pain because MSC8, MSC9 and ICC 10 are in use)
36 #ifndef LIB_STATIC_LINK
37 # define BOOST_ALL_DYN_LINK
38 #endif
39 
40 // don't compile get_system_category() etc, since we don't use them and they
41 // sometimes cause problems when linking.
42 // But Filesystem <= 1.43 requires boost::system::posix, so only disable if newer
43 #include <boost/version.hpp>
44 #if BOOST_VERSION >= 104400
45 # define BOOST_SYSTEM_NO_DEPRECATED
46 #endif
47 
48 // the following boost libraries have been included in TR1 and are
49 // thus deemed usable:
50 #if BOOST_VERSION >= 104400
51 // Filesystem v3 is included since Boost 1.44
52 // v2 is deprecated since 1.46 and removed entirely in 1.50
53 # define BOOST_FILESYSTEM_VERSION 3
54 #else
55 # define BOOST_FILESYSTEM_VERSION 2
56 #endif
57 #include <boost/filesystem.hpp>
58 namespace fs = boost::filesystem;
59 
60 #endif // #ifndef INCLUDED_PCH_BOOST