endian.hpp 798 B

1234567891011121314151617181920212223242526272829
  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. #if !defined(SPIRIT_ENDIAN_MAR_21_2009_0349PM)
  7. #define SPIRIT_ENDIAN_MAR_21_2009_0349PM
  8. #if defined(_MSC_VER)
  9. #pragma once
  10. #endif
  11. #include <boost/version.hpp>
  12. // We need to treat the endian number types as PODs
  13. #if !defined(BOOST_ENDIAN_FORCE_PODNESS)
  14. #define BOOST_ENDIAN_FORCE_PODNESS 1
  15. #endif
  16. // If Boost has the endian library, use it, otherwise use an adapted version
  17. // included with Spirit
  18. // #if BOOST_VERSION >= 105100
  19. // #include <boost/endian/integers.hpp>
  20. // #else
  21. #include <boost/spirit/home/support/detail/endian/endian.hpp>
  22. // #endif
  23. #endif