changeset 4893:99f2102552d7

Add typedefs for PCVOID and PDWORD_PTR for non-Cygwin-headers folks. 2010-01-28 Ben Wing <ben@xemacs.org> * syswindows.h: Add typedefs for PCVOID and PDWORD_PTR for non-Cygwin-headers folks (i.e. Visual Studio et al.).
author Ben Wing <ben@xemacs.org>
date Thu, 28 Jan 2010 04:02:14 -0600
parents d1d4ce10c7b4
children 03ab78e48ef6 a7ab1d6ff301 bd169a24a554
files src/ChangeLog src/syswindows.h
diffstat 2 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Wed Jan 27 14:36:24 2010 +0000
+++ b/src/ChangeLog	Thu Jan 28 04:02:14 2010 -0600
@@ -1,3 +1,9 @@
+2010-01-28  Ben Wing  <ben@xemacs.org>
+
+	* syswindows.h:
+	Add typedefs for PCVOID and PDWORD_PTR for non-Cygwin-headers folks
+	(i.e. Visual Studio et al.).
+
 2010-01-27  Aidan Kehoe  <kehoea@parhasard.net>
 
 	* number.c (Fdenominator): 
--- a/src/syswindows.h	Wed Jan 27 14:36:24 2010 +0000
+++ b/src/syswindows.h	Thu Jan 28 04:02:14 2010 -0600
@@ -473,8 +473,16 @@
 typedef LPCDLGTEMPLATE LPCDLGTEMPLATEA;
 
 #else /* !CYGWIN_HEADERS */
+
 #define W32API_VER(major,minor) 0
 #define W32API_INSTALLED_VER 0
+
+/* Some types that show up in Cygwin headers but not in Visual Studio headers,
+   and cause problems if we used Cygwin headers to generate
+   intl-auto-encap-win32.[ch]. */
+typedef LPCVOID PCVOID;
+typedef LPDWORD *PDWORD_PTR;
+
 #endif /* CYGWIN_HEADERS */
 
 /* Not in VC 6 */