2003-04-10 17:25:45 +02:00
|
|
|
$NetBSD: patch-ah,v 1.3 2003/04/10 15:25:46 kent Exp $
|
2001-10-21 14:39:05 +02:00
|
|
|
|
2003-04-10 17:25:45 +02:00
|
|
|
--- include/winnt.h~ 2002-06-14 20:42:27.000000000 +0900
|
2001-10-21 14:39:05 +02:00
|
|
|
+++ include/winnt.h
|
2003-04-10 17:25:45 +02:00
|
|
|
@@ -55,6 +55,10 @@ typedef unsigned short USHORT,*PUSHORT;
|
|
|
|
typedef unsigned long ULONG,*PULONG;
|
2002-03-18 04:25:46 +01:00
|
|
|
typedef char *PSZ;
|
2001-10-21 14:39:05 +02:00
|
|
|
|
2003-04-10 17:25:45 +02:00
|
|
|
+#ifdef __NetBSDPE__
|
|
|
|
+#include <stdint.h>
|
|
|
|
+typedef uint16_t WCHAR;
|
|
|
|
+#else
|
2001-10-21 14:39:05 +02:00
|
|
|
#ifndef _WCHAR_T_DEFINED
|
2003-04-10 17:25:45 +02:00
|
|
|
#define _WCHAR_T_DEFINED
|
|
|
|
#ifndef _WCHAR_T_
|
|
|
|
@@ -67,6 +71,7 @@ typedef unsigned short wchar_t;
|
|
|
|
#endif
|
2002-03-18 04:25:46 +01:00
|
|
|
|
|
|
|
typedef wchar_t WCHAR;
|
2003-04-10 17:25:45 +02:00
|
|
|
+#endif
|
2002-03-18 04:25:46 +01:00
|
|
|
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;
|