summaryrefslogtreecommitdiffstats
path: root/spice/end-packed.h
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2010-01-28 14:27:06 +0100
committerAlexander Larsson <alexl@redhat.com>2010-02-04 16:43:15 +0100
commit7050ae14a4f3acd4e522a4fb050d5cb136e8c529 (patch)
tree48f00432b40ae51426b928c11688eadcc3e81fcf /spice/end-packed.h
parentc2852f6b5f4643b9ace25373ce759d247e96ad55 (diff)
downloadspice-protocol-7050ae14a4f3acd4e522a4fb050d5cb136e8c529.tar.gz
spice-protocol-7050ae14a4f3acd4e522a4fb050d5cb136e8c529.tar.xz
spice-protocol-7050ae14a4f3acd4e522a4fb050d5cb136e8c529.zip
Add standard header for structure packing
Diffstat (limited to 'spice/end-packed.h')
-rw-r--r--spice/end-packed.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/spice/end-packed.h b/spice/end-packed.h
new file mode 100644
index 0000000..e191737
--- /dev/null
+++ b/spice/end-packed.h
@@ -0,0 +1,40 @@
+/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
+/*
+ Copyright (C) 2009 Red Hat, Inc.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are
+ met:
+
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+ * Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS "AS
+ IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/* See start-packed.h for details */
+
+#undef SPICE_ATTR_PACKED
+
+#ifndef __GNUC__
+
+#pragma pack(pop)
+
+#endif