Move LDT_ENTRY to winnt.h

Francois Gouget fgouget at free.fr
Sun Aug 22 13:52:48 CDT 2004


The Platform SDK headers define LDT_ENTRY in wnint.h (and LPLDT_ENTRY
in winbase.h...).


Changelog:

 * include/winbase.h
   include/winnt.h

   Move LDT_ENTRY to winnt.h


-- 
Francois Gouget         fgouget at free.fr        http://fgouget.free.fr/
  Good judgment comes from experience, and experience comes from bad judgment
                               -- Barry LePatner
-------------- next part --------------
Index: include/winbase.h
===================================================================
RCS file: /var/cvs/wine/include/winbase.h,v
retrieving revision 1.213
diff -u -r1.213 winbase.h
--- include/winbase.h	13 Aug 2004 00:41:34 -0000	1.213
+++ include/winbase.h	22 Aug 2004 01:50:39 -0000
@@ -707,32 +709,7 @@
 #define	LOAD_LIBRARY_AS_DATAFILE	0x00000002
 #define	LOAD_WITH_ALTERED_SEARCH_PATH	0x00000008
 
-/* ifdef _x86_ ... */
-typedef struct _LDT_ENTRY {
-    WORD	LimitLow;
-    WORD	BaseLow;
-    union {
-	struct {
-	    BYTE	BaseMid;
-	    BYTE	Flags1;/*Declare as bytes to avoid alignment problems */
-	    BYTE	Flags2;
-	    BYTE	BaseHi;
-	} Bytes;
-	struct {
-	    unsigned	BaseMid		: 8;
-	    unsigned	Type		: 5;
-	    unsigned	Dpl		: 2;
-	    unsigned	Pres		: 1;
-	    unsigned	LimitHi		: 4;
-	    unsigned	Sys		: 1;
-	    unsigned	Reserved_0	: 1;
-	    unsigned	Default_Big	: 1;
-	    unsigned	Granularity	: 1;
-	    unsigned	BaseHi		: 8;
-	} Bits;
-    } HighWord;
-} LDT_ENTRY, *LPLDT_ENTRY;
-
+typedef PLDT_ENTRY LPLDT_ENTRY;
 
 typedef enum _GET_FILEEX_INFO_LEVELS {
     GetFileExInfoStandard
Index: include/winnt.h
===================================================================
RCS file: /var/cvs/wine/include/winnt.h,v
retrieving revision 1.188
diff -u -r1.188 winnt.h
--- include/winnt.h	22 Aug 2004 02:07:13 -0000	1.188
+++ include/winnt.h	22 Aug 2004 10:04:06 -0000
@@ -678,6 +678,31 @@
 
 #endif  /* __i386__ */
 
+typedef struct _LDT_ENTRY {
+    WORD	LimitLow;
+    WORD	BaseLow;
+    union {
+	struct {
+	    BYTE	BaseMid;
+	    BYTE	Flags1;/*Declare as bytes to avoid alignment problems */
+	    BYTE	Flags2;
+	    BYTE	BaseHi;
+	} Bytes;
+	struct {
+	    unsigned	BaseMid		: 8;
+	    unsigned	Type		: 5;
+	    unsigned	Dpl		: 2;
+	    unsigned	Pres		: 1;
+	    unsigned	LimitHi		: 4;
+	    unsigned	Sys		: 1;
+	    unsigned	Reserved_0	: 1;
+	    unsigned	Default_Big	: 1;
+	    unsigned	Granularity	: 1;
+	    unsigned	BaseHi		: 8;
+	} Bits;
+    } HighWord;
+} LDT_ENTRY, *PLDT_ENTRY;
+
 /* Alpha context definitions */
 #ifdef _ALPHA_
 


More information about the wine-patches mailing list