1 // Copyright (C) 2007-2012 Nikolaus Gebhardt
\r
2 // This file is part of the "Irrlicht Engine".
\r
3 // For conditions of distribution and use, see copyright notice in irrlicht.h
\r
5 // include this file right before the data structures to be 1-aligned
\r
6 // and add to each structure the PACK_STRUCT define just like this:
\r
11 // Always include the irrunpack.h file right after the last type declared
\r
12 // like this, and do not put any other types with different alignment
\r
15 // byte-align structures
\r
16 #if defined(_MSC_VER)
\r
17 # pragma warning(disable: 4103)
\r
18 # pragma pack( push, packing )
\r
20 # define PACK_STRUCT
\r
21 #elif defined( __GNUC__ )
\r
22 # define PACK_STRUCT __attribute__((packed))
\r
24 # error compiler not supported
\r