summaryrefslogtreecommitdiff
path: root/Modules/winreparse.h
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/winreparse.h')
-rw-r--r--Modules/winreparse.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/Modules/winreparse.h b/Modules/winreparse.h
index 66f7775dd2..28049c9af9 100644
--- a/Modules/winreparse.h
+++ b/Modules/winreparse.h
@@ -2,7 +2,7 @@
#define Py_WINREPARSE_H
#ifdef MS_WINDOWS
-#include <Windows.h>
+#include <windows.h>
#ifdef __cplusplus
extern "C" {
@@ -10,9 +10,10 @@ extern "C" {
/* The following structure was copied from
http://msdn.microsoft.com/en-us/library/ff552012.aspx as the required
- include doesn't seem to be present in the Windows SDK (at least as included
- with Visual Studio Express). */
-typedef struct _REPARSE_DATA_BUFFER {
+ include km\ntifs.h isn't present in the Windows SDK (at least as included
+ with Visual Studio Express). Use unique names to avoid conflicting with
+ the structure as defined by Min GW. */
+typedef struct {
ULONG ReparseTag;
USHORT ReparseDataLength;
USHORT Reserved;
@@ -38,11 +39,11 @@ typedef struct _REPARSE_DATA_BUFFER {
UCHAR DataBuffer[1];
} GenericReparseBuffer;
};
-} REPARSE_DATA_BUFFER, *PREPARSE_DATA_BUFFER;
+} _Py_REPARSE_DATA_BUFFER, *_Py_PREPARSE_DATA_BUFFER;
-#define REPARSE_DATA_BUFFER_HEADER_SIZE FIELD_OFFSET(REPARSE_DATA_BUFFER,\
- GenericReparseBuffer)
-#define MAXIMUM_REPARSE_DATA_BUFFER_SIZE ( 16 * 1024 )
+#define _Py_REPARSE_DATA_BUFFER_HEADER_SIZE \
+ FIELD_OFFSET(_Py_REPARSE_DATA_BUFFER, GenericReparseBuffer)
+#define _Py_MAXIMUM_REPARSE_DATA_BUFFER_SIZE ( 16 * 1024 )
#ifdef __cplusplus
}