- Our resident GCC expert just informed me of an undocumented "enable Microsoft Compiler Extensions" flag that makes things like unnnamed members work.

- Apply the switch and remove our workaround hack.


svn path=/trunk/; revision=34614
This commit is contained in:
ReactOS Portable Systems Group 2008-07-20 19:39:55 +00:00
parent f956615435
commit 87f76ea54b
2 changed files with 13 additions and 13 deletions

View file

@ -52,20 +52,19 @@ DEFINE_GUID(RamdiskBusInterface,
0x410F,
0x80, 0xE4, 0x05, 0xF8, 0x10, 0xE7, 0xA8, 0x8A);
//
// GCC does not seem to support anonymous structures
//
#define RAMDISK_EXTENSION \
RAMDISK_DEVICE_TYPE Type; \
RAMDISK_DEVICE_STATE State; \
PDEVICE_OBJECT DeviceObject; \
PDEVICE_OBJECT PhysicalDeviceObject; \
PDEVICE_OBJECT AttachedDevice; \
IO_REMOVE_LOCK RemoveLock; \
UNICODE_STRING DriveDeviceName; \
UNICODE_STRING BusDeviceName; \
FAST_MUTEX DiskListLock; \
typedef struct _RAMDISK_EXTENSION
{
RAMDISK_DEVICE_TYPE Type;
RAMDISK_DEVICE_STATE State;
PDEVICE_OBJECT DeviceObject;
PDEVICE_OBJECT PhysicalDeviceObject;
PDEVICE_OBJECT AttachedDevice;
IO_REMOVE_LOCK RemoveLock;
UNICODE_STRING DriveDeviceName;
UNICODE_STRING BusDeviceName;
FAST_MUTEX DiskListLock;
LIST_ENTRY DiskList;
} RAMDISK_EXTENSION, *PRAMDISK_EXTENSION;
typedef struct _RAMDISK_BUS_EXTENSION
{

View file

@ -6,4 +6,5 @@
<library>hal</library>
<file>ramdisk.c</file>
<file>ramdisk.rc</file>
<compilerflag>-fms-extensions</compilerflag>
</module>