Author: ros-arm-bringup Date: Sun Jul 20 14:39:55 2008 New Revision: 34614
URL: http://svn.reactos.org/svn/reactos?rev=34614&view=rev Log: - 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.
Modified: trunk/reactos/drivers/storage/class/ramdisk/ramdisk.c trunk/reactos/drivers/storage/class/ramdisk/ramdisk.rbuild
Modified: trunk/reactos/drivers/storage/class/ramdisk/ramdisk.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/storage/class/ramdi... ============================================================================== --- trunk/reactos/drivers/storage/class/ramdisk/ramdisk.c [iso-8859-1] (original) +++ trunk/reactos/drivers/storage/class/ramdisk/ramdisk.c [iso-8859-1] Sun Jul 20 14:39:55 2008 @@ -52,20 +52,19 @@ 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 {
Modified: trunk/reactos/drivers/storage/class/ramdisk/ramdisk.rbuild URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/storage/class/ramdi... ============================================================================== --- trunk/reactos/drivers/storage/class/ramdisk/ramdisk.rbuild [iso-8859-1] (original) +++ trunk/reactos/drivers/storage/class/ramdisk/ramdisk.rbuild [iso-8859-1] Sun Jul 20 14:39:55 2008 @@ -6,4 +6,5 @@ <library>hal</library> <file>ramdisk.c</file> <file>ramdisk.rc</file> + <compilerflag>-fms-extensions</compilerflag> </module>