Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
pch_boost.h
Go to the documentation of this file.
1 #ifndef INCLUDED_PCH_BOOST
2 #define INCLUDED_PCH_BOOST
3 
5 
6 #if MSC_VERSION >= 1600
7 # define BOOST_HAS_STDINT_H
8 #endif
9 
10 // Boost
11 // .. if this package isn't going to be statically linked, we're better off
12 // using Boost via DLL. (otherwise, we would have to ensure the exact same
13 // compiler is used, which is a pain because MSC8, MSC9 and ICC 10 are in use)
14 #ifndef LIB_STATIC_LINK
15 # define BOOST_ALL_DYN_LINK
16 #endif
17 
18 // don't compile get_system_category() etc, since we don't use them and they
19 // sometimes cause problems when linking.
20 // But Filesystem <= 1.43 requires boost::system::posix, so only disable if newer
21 #include <boost/version.hpp>
22 #if BOOST_VERSION >= 104400
23 # define BOOST_SYSTEM_NO_DEPRECATED
24 #endif
25 
26 // the following boost libraries have been included in TR1 and are
27 // thus deemed usable:
28 #if BOOST_VERSION >= 104400
29 // Filesystem v3 is included since Boost 1.44
30 // v2 is deprecated since 1.46 and removed entirely in 1.50
31 # define BOOST_FILESYSTEM_VERSION 3
32 #else
33 # define BOOST_FILESYSTEM_VERSION 2
34 #endif
35 #include <boost/filesystem.hpp>
36 namespace fs = boost::filesystem;
37 
38 #include <boost/shared_ptr.hpp>
39 
40 // (these ones are used more rarely, so we don't enable them in minimal configurations)
41 #if !MINIMAL_PCH
42 #include <boost/array.hpp>
43 using boost::array;
44 
45 #include <boost/mem_fn.hpp>
46 using boost::mem_fn;
47 
48 #include <boost/function.hpp>
49 using boost::function;
50 
51 #include <boost/bind.hpp>
52 using boost::bind;
53 #endif // !MINIMAL_PCH
54 
55 #endif // #ifndef INCLUDED_PCH_BOOST