Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Sutcliffe <ir0nh34d@users.sourceforge.net>2011-03-05 07:51:01 +0300
committerChris Sutcliffe <ir0nh34d@users.sourceforge.net>2011-03-05 07:51:01 +0300
commit09ba620e3fe3f6b5b0fadbb4e2f8a77704ba5128 (patch)
treeac5b6799501089a27cf7dc26cdc870ae23b33e66 /winsup/w32api/include
parent2af4c4de0974a66f251f6e363b5fc70da8afd14e (diff)
2011-03-04 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
* include/winioctl.h (_DRIVE_LAYOUT_INFORMATION_MBR): Add _DRIVE_LAYOUT_INFORMATION_MBR_DEFINED guard. * include/ddk/winddk.h (_DRIVE_LAYOUT_INFORMATION_MBR): Ditto.
Diffstat (limited to 'winsup/w32api/include')
-rw-r--r--winsup/w32api/include/ddk/winddk.h4
-rw-r--r--winsup/w32api/include/winioctl.h3
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/w32api/include/ddk/winddk.h b/winsup/w32api/include/ddk/winddk.h
index 0c9d695a4..3ddc356a0 100644
--- a/winsup/w32api/include/ddk/winddk.h
+++ b/winsup/w32api/include/ddk/winddk.h
@@ -1075,10 +1075,12 @@ enum
IRP_RETRY_IO_COMPLETION = 0x4000
};
-
+#ifndef _DRIVE_LAYOUT_INFORMATION_MBR_DEFINED
+#define _DRIVE_LAYOUT_INFORMATION_MBR_DEFINED
typedef struct _DRIVE_LAYOUT_INFORMATION_MBR {
ULONG Signature;
} DRIVE_LAYOUT_INFORMATION_MBR, *PDRIVE_LAYOUT_INFORMATION_MBR;
+#endif
typedef struct _DRIVE_LAYOUT_INFORMATION_GPT {
GUID DiskId;
diff --git a/winsup/w32api/include/winioctl.h b/winsup/w32api/include/winioctl.h
index 44704d744..efa0b732e 100644
--- a/winsup/w32api/include/winioctl.h
+++ b/winsup/w32api/include/winioctl.h
@@ -432,9 +432,12 @@ typedef struct _DRIVE_LAYOUT_INFORMATION_GPT {
LARGE_INTEGER UsableLength;
ULONG MaxPartitionCount;
} DRIVE_LAYOUT_INFORMATION_GPT,*PDRIVE_LAYOUT_INFORMATION_GPT;
+#ifndef _DRIVE_LAYOUT_INFORMATION_MBR_DEFINED
+#define _DRIVE_LAYOUT_INFORMATION_MBR_DEFINED
typedef struct _DRIVE_LAYOUT_INFORMATION_MBR {
ULONG Signature;
} DRIVE_LAYOUT_INFORMATION_MBR, *PDRIVE_LAYOUT_INFORMATION_MBR;
+#endif
typedef struct _PARTITION_INFORMATION_MBR {
BYTE PartitionType;
BOOLEAN BootIndicator;