summaryrefslogtreecommitdiff
path: root/src/pal/inc/rt/pshpck16.h
diff options
context:
space:
mode:
authordotnet-bot <dotnet-bot@microsoft.com>2015-01-30 14:14:42 -0800
committerdotnet-bot <dotnet-bot@microsoft.com>2015-01-30 14:14:42 -0800
commitef1e2ab328087c61a6878c1e84f4fc5d710aebce (patch)
treedee1bbb89e9d722e16b0d1485e3cdd1b6c8e2cfa /src/pal/inc/rt/pshpck16.h
downloadcoreclr-ef1e2ab328087c61a6878c1e84f4fc5d710aebce.tar.gz
coreclr-ef1e2ab328087c61a6878c1e84f4fc5d710aebce.tar.bz2
coreclr-ef1e2ab328087c61a6878c1e84f4fc5d710aebce.zip
Initial commit to populate CoreCLR repo
[tfs-changeset: 1407945]
Diffstat (limited to 'src/pal/inc/rt/pshpck16.h')
-rw-r--r--src/pal/inc/rt/pshpck16.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/pal/inc/rt/pshpck16.h b/src/pal/inc/rt/pshpck16.h
new file mode 100644
index 0000000000..9792c5aeba
--- /dev/null
+++ b/src/pal/inc/rt/pshpck16.h
@@ -0,0 +1,39 @@
+//
+// Copyright (c) Microsoft. All rights reserved.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+//
+//
+
+//
+// ===========================================================================
+// File: pshpck16.h
+//
+// ===========================================================================
+
+/*++
+
+Abstract:
+
+ This file turns 16 byte packing of structures on. (That is, it disables
+ automatic alignment of structure fields.) An include file is needed
+ because various compilers do this in different ways. For Microsoft
+ compatible compilers, this files uses the push option to the pack pragma
+ so that the poppack.h include file can restore the previous packing
+ reliably.
+
+ The file poppack.h is the complement to this file.
+
+--*/
+
+#if ! (defined(lint) || defined(RC_INVOKED))
+#if ( _MSC_VER >= 800 && !defined(_M_I86)) || defined(_PUSHPOP_SUPPORTED)
+#pragma warning(disable:4103)
+#if !(defined( MIDL_PASS )) || defined( __midl )
+#pragma pack(push,16)
+#else
+#pragma pack(16)
+#endif
+#else
+#pragma pack(16)
+#endif
+#endif // ! (defined(lint) || defined(RC_INVOKED))