libcopp  2.2.0
msvc_prefix.hpp
Go to the documentation of this file.
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 //
7 // Boost binaries are built with the compiler's default ABI settings,
8 // if the user changes their default alignment in the VS IDE then their
9 // code will no longer be binary compatible with the bjam built binaries
10 // unless this header is included to force Boost code into a consistent ABI.
11 //
12 // Note that inclusion of this header is only necessary for libraries with
13 // separate source, header only libraries DO NOT need this as long as all
14 // translation units are built with the same options.
15 //
16 #if defined(_M_X64)
17 # pragma pack(push, 16)
18 #else
19 # pragma pack(push, 8)
20 #endif