Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
pch_boost.h
Go to the documentation of this file.
1/* Copyright (C) 2022 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// don't compile get_system_category() etc, since we don't use them and they
33// sometimes cause problems when linking.
34// But Filesystem <= 1.43 requires boost::system::posix, so only disable if newer
35#include <boost/version.hpp>
36#if BOOST_VERSION >= 104400
37# define BOOST_SYSTEM_NO_DEPRECATED
38#endif
39
40// the following boost libraries have been included in TR1 and are
41// thus deemed usable:
42#if BOOST_VERSION >= 104400
43// Filesystem v3 is included since Boost 1.44
44// v2 is deprecated since 1.46 and removed entirely in 1.50
45# define BOOST_FILESYSTEM_VERSION 3
46#else
47# define BOOST_FILESYSTEM_VERSION 2
48#endif
49
50namespace boost{
51 namespace filesystem {
52 class path;
53 typedef path wpath;
54 };
55}
56namespace fs = boost::filesystem;
57
58#endif // #ifndef INCLUDED_PCH_BOOST
Definition: pch_boost.h:51
path wpath
Definition: pch_boost.h:53
Definition: pch_boost.h:50