pkgsrc/devel/w32api/patches/patch-ah

47 lines
1.1 KiB
Text
Raw Normal View History

$NetBSD: patch-ah,v 1.4 2003/09/21 16:03:40 kent Exp $
--- include/winnt.h.orig 2003-09-12 22:24:45.000000000 +0900
+++ include/winnt.h
@@ -63,6 +63,10 @@
#endif
typedef void* __ptr64 PVOID64;
2003-04-10 17:25:45 +02:00
+#ifdef __NetBSDPE__
+#include <stdint.h>
+typedef uint16_t WCHAR;
+#else
#ifndef _WCHAR_T_DEFINED
2003-04-10 17:25:45 +02:00
#define _WCHAR_T_DEFINED
#ifndef _WCHAR_T_
@@ -75,6 +79,7 @@
2003-04-10 17:25:45 +02:00
#endif
typedef wchar_t WCHAR;
2003-04-10 17:25:45 +02:00
+#endif
typedef WCHAR *PWCHAR,*LPWCH,*PWCH,*NWPSTR,*LPWSTR,*PWSTR;
2003-04-10 17:25:45 +02:00
typedef CONST WCHAR *LPCWCH,*PCWCH,*LPCWSTR,*PCWSTR;
typedef CHAR *PCHAR,*LPCH,*PCH,*NPSTR,*LPSTR,*PSTR;
@@ -2178,13 +2183,21 @@
#ifndef _SLIST_HEADER_
#define _SLIST_HEADER_
-#define SLIST_ENTRY SINGLE_LIST_ENTRY
+#ifdef __NetBSDPE__
+# define W32_SLIST_ENTRY SINGLE_LIST_ENTRY
+#else
+# define SLIST_ENTRY SINGLE_LIST_ENTRY
+#endif
#define _SLIST_ENTRY _SINGLE_LIST_ENTRY
#define PSLIST_ENTRY PSINGLE_LIST_ENTRY
typedef union _SLIST_HEADER {
ULONGLONG Alignment;
_ANONYMOUS_STRUCT struct {
+#ifdef __NetBSDPE__
+ W32_SLIST_ENTRY Next;
+#else
SLIST_ENTRY Next;
+#endif
WORD Depth;
WORD Sequence;
} DUMMYSTRUCTNAME;