pkgsrc/devel/w32api/patches/patch-ah
kent a4b1af47b8 Stop using wchar_t.
Bump PKGREVISION.
2003-04-10 15:25:45 +00:00

23 lines
656 B
Text

$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;