fix msvc build

svn path=/trunk/; revision=30673
This commit is contained in:
Christoph von Wittich 2007-11-22 14:28:21 +00:00
parent db79be2e33
commit 17e098c5bf
2 changed files with 8 additions and 6 deletions

View file

@ -12,6 +12,7 @@
#define SECTORSIZE 512
#include <pshpack1.h>
typedef struct _FAT16_BOOT_SECTOR
{
unsigned char magic0; // 0
@ -38,7 +39,7 @@ typedef struct _FAT16_BOOT_SECTOR
unsigned char SysType[8]; // 54
unsigned char Res2[446]; // 62
unsigned long Signature1; // 508
} __attribute__((packed)) FAT16_BOOT_SECTOR, *PFAT16_BOOT_SECTOR;
} FAT16_BOOT_SECTOR, *PFAT16_BOOT_SECTOR;
typedef struct _FAT32_BOOT_SECTOR
@ -74,7 +75,7 @@ typedef struct _FAT32_BOOT_SECTOR
unsigned char SysType[8]; // 82
unsigned char Res2[418]; // 90
unsigned long Signature1; // 508
} __attribute__((packed)) FAT32_BOOT_SECTOR, *PFAT32_BOOT_SECTOR;
} FAT32_BOOT_SECTOR, *PFAT32_BOOT_SECTOR;
typedef struct _FAT32_FSINFO
{
@ -85,8 +86,8 @@ typedef struct _FAT32_FSINFO
unsigned long NextFree; // 492
unsigned long Res2[3]; // 496
unsigned long TrailSig; // 508
} __attribute__((packed)) FAT32_FSINFO, *PFAT32_FSINFO;
} FAT32_FSINFO, *PFAT32_FSINFO;
#include <poppack.h>
typedef struct _FORMAT_CONTEXT
{

View file

@ -9,6 +9,7 @@
#include <ndk/ntndk.h>
#include <fmifs/fmifs.h>
#include <pshpack1.h>
typedef struct _FATX_BOOT_SECTOR
{
unsigned char SysType[4]; // 0
@ -17,8 +18,8 @@ typedef struct _FATX_BOOT_SECTOR
unsigned short FATCount; // 12
unsigned long Unknown; // 14
unsigned char Unused[4078]; // 18
} __attribute__((packed)) FATX_BOOT_SECTOR, *PFATX_BOOT_SECTOR;
} FATX_BOOT_SECTOR, *PFATX_BOOT_SECTOR;
#include <poppack.h>
typedef struct _FORMAT_CONTEXT
{