From bbdbd036ca2664e32ec2cf01f0eb77c30aad6119 Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Fri, 29 Jul 2005 13:28:37 +0000 Subject: [PATCH] added a forward declaration to _DRIVE_LAYOUT_INFORMATION(_EX). this fixes building io/disk.c with GCC4. The reason is that the structures were used in function prototypes, which are forward declarations in the scope of the function declaration only. Since the structures were defined later, the implementations of the functions using them, actually used the defined structure types, which were different from the forward declarations in the function prototypes (even though they have the same name, they just differ in their scope). This caused GCC to warn because of incompatible function prototypes and incompatible pointer types passed to those functions svn path=/trunk/; revision=16859 --- reactos/w32api/include/ddk/winddk.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/reactos/w32api/include/ddk/winddk.h b/reactos/w32api/include/ddk/winddk.h index 10257ac771c..6e73231aa1d 100644 --- a/reactos/w32api/include/ddk/winddk.h +++ b/reactos/w32api/include/ddk/winddk.h @@ -101,6 +101,8 @@ struct _SECTION_OBJECT; struct _IO_STATUS_BLOCK; struct _DEVICE_DESCRIPTION; struct _SCATTER_GATHER_LIST; +struct _DRIVE_LAYOUT_INFORMATION; +struct _DRIVE_LAYOUT_INFORMATION_EX; DECLARE_INTERNAL_OBJECT(ADAPTER_OBJECT) DECLARE_INTERNAL_OBJECT(DMA_ADAPTER)