summaryrefslogtreecommitdiff
path: root/devel/w32api/patches/patch-ah
blob: 58b73b73d45c868612acc93f50e15bd5c13b4608 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$NetBSD: patch-ah,v 1.3 2003/04/10 15:25:46 kent Exp $

--- include/winnt.h~	2002-06-14 20:42:27.000000000 +0900
+++ include/winnt.h
@@ -55,6 +55,10 @@ typedef unsigned short USHORT,*PUSHORT;
 typedef unsigned long ULONG,*PULONG;
 typedef char *PSZ;
 
+#ifdef __NetBSDPE__
+#include <stdint.h>
+typedef uint16_t WCHAR;
+#else
 #ifndef _WCHAR_T_DEFINED
 #define _WCHAR_T_DEFINED
 #ifndef _WCHAR_T_
@@ -67,6 +71,7 @@ typedef unsigned short wchar_t;
 #endif
 
 typedef wchar_t WCHAR;
+#endif
 typedef WCHAR *PWCHAR,*LPWCH,*PWCH,*NWPSTR,*LPWSTR,*PWSTR;
 typedef CONST WCHAR *LPCWCH,*PCWCH,*LPCWSTR,*PCWSTR;
 typedef CHAR *PCHAR,*LPCH,*PCH,*NPSTR,*LPSTR,*PSTR;