You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and dots ('.'), can be up to 35 characters long. Letters must be lowercase.
29 lines
788 B
29 lines
788 B
// Copyright (c) 2001-2011 Hartmut Kaiser |
|
// http://spirit.sourceforge.net/ |
|
// |
|
// Distributed under the Boost Software License, Version 1.0. (See accompanying |
|
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
|
|
|
#if !defined(SPIRIT_ENDIAN_MAR_21_2009_0349PM) |
|
#define SPIRIT_ENDIAN_MAR_21_2009_0349PM |
|
|
|
#if defined(_MSC_VER) |
|
#pragma once |
|
#endif |
|
|
|
#include <boost/version.hpp> |
|
|
|
// We need to treat the endian number types as PODs |
|
#if !defined(BOOST_ENDIAN_FORCE_PODNESS) |
|
#define BOOST_ENDIAN_FORCE_PODNESS 1 |
|
#endif |
|
|
|
// If Boost has the endian library, use it, otherwise use an adapted version |
|
// included with Spirit |
|
#if BOOST_VERSION >= 104900 |
|
#include <boost/endian/integers.hpp> |
|
#else |
|
#include <boost/spirit/home/support/detail/endian/endian.hpp> |
|
#endif |
|
|
|
#endif
|
|
|