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 #define BOOST_ENDIAN_FORCE_PODNESS 18 19 // If Boost has the endian library, use it, otherwise use an adapted version 20 // included with Spirit 21 #if BOOST_VERSION >= 104800 22 #include <boost/integer/endian.hpp> 23 #else 24 #include <boost/spirit/home/support/detail/integer/endian.hpp> 25 #endif 26 27 #endif 28