mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 00:45:24 +00:00
- 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:
parent
f956615435
commit
87f76ea54b
2 changed files with 13 additions and 13 deletions
|
@ -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
|
||||
{
|
||||
|
|
|
@ -6,4 +6,5 @@
|
|||
<library>hal</library>
|
||||
<file>ramdisk.c</file>
|
||||
<file>ramdisk.rc</file>
|
||||
<compilerflag>-fms-extensions</compilerflag>
|
||||
</module>
|
||||
|
|
Loading…
Reference in a new issue