]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | // Copyright (c) 2001-2011 Hartmut Kaiser |
2 | // http://spirit.sourceforge.net/ | |
3 | // | |
4 | // Distributed under the Boost Software License, Version 1.0. (See accompanying | |
5 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | |
6 | ||
7 | #if !defined(SPIRIT_ENDIAN_MAR_21_2009_0349PM) | |
8 | #define SPIRIT_ENDIAN_MAR_21_2009_0349PM | |
9 | ||
10 | #if defined(_MSC_VER) | |
11 | #pragma once | |
12 | #endif | |
13 | ||
14 | #include <boost/version.hpp> | |
15 | ||
16 | // We need to treat the endian number types as PODs | |
17 | #if !defined(BOOST_ENDIAN_FORCE_PODNESS) | |
18 | #define BOOST_ENDIAN_FORCE_PODNESS 1 | |
19 | #endif | |
20 | ||
21 | // If Boost has the endian library, use it, otherwise use an adapted version | |
22 | // included with Spirit | |
23 | // #if BOOST_VERSION >= 105100 | |
24 | // #include <boost/endian/integers.hpp> | |
25 | // #else | |
26 | #include <boost/spirit/home/support/detail/endian/endian.hpp> | |
27 | // #endif | |
28 | ||
29 | #endif |