msvc_prefix.hpp 819 B

12345678910111213141516171819202122
  1. // (C) Copyright John Maddock 2003.
  2. // Use, modification and distribution are subject to the
  3. // Boost Software License, Version 1.0. (See accompanying file
  4. // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. //
  6. // Boost binaries are built with the compiler's default ABI settings,
  7. // if the user changes their default alignment in the VS IDE then their
  8. // code will no longer be binary compatible with the bjam built binaries
  9. // unless this header is included to force Boost code into a consistent ABI.
  10. //
  11. // Note that inclusion of this header is only necessary for libraries with
  12. // separate source, header only libraries DO NOT need this as long as all
  13. // translation units are built with the same options.
  14. //
  15. #if defined(_M_X64)
  16. # pragma pack(push,16)
  17. #else
  18. # pragma pack(push,8)
  19. #endif