struct packing compiler independence. Patch by Mike Nordell.

svn path=/trunk/; revision=7459
This commit is contained in:
Thomas Bluemel 2004-01-05 13:50:23 +00:00
parent 1354f5b5a9
commit 16da2140a1

View file

@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
/* $Id: udfs.c,v 1.4 2003/11/17 02:12:49 hyperion Exp $ /* $Id: udfs.c,v 1.5 2004/01/05 13:50:23 weiden Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -41,6 +41,8 @@
/* TYPES ********************************************************************/ /* TYPES ********************************************************************/
#include <pshpack1.h>
typedef struct _TAG typedef struct _TAG
{ {
USHORT Identifier; USHORT Identifier;
@ -51,20 +53,23 @@ typedef struct _TAG
USHORT Crc; USHORT Crc;
USHORT CrcLength; USHORT CrcLength;
ULONG Location; ULONG Location;
} PACKED TAG, *PTAG; } TAG, *PTAG;
typedef struct _EXTENT typedef struct _EXTENT
{ {
ULONG Length; ULONG Length;
ULONG Location; ULONG Location;
} PACKED EXTENT, *PEXTENT; } EXTENT, *PEXTENT;
typedef struct _AVDP typedef struct _AVDP
{ {
TAG DescriptorTag; TAG DescriptorTag;
EXTENT MainVolumeDescriptorExtent; EXTENT MainVolumeDescriptorExtent;
EXTENT ReserveVolumeDescriptorExtent; EXTENT ReserveVolumeDescriptorExtent;
} PACKED AVDP, *PAVDP; } AVDP, *PAVDP;
#include <poppack.h>
/* FUNCTIONS ****************************************************************/ /* FUNCTIONS ****************************************************************/