Commits

Anonymous committed 1003acd

Fix cygwin build on new win32api.

  • Participants
  • Parent commits 68f8d29

Comments (0)

Files changed (2)

File src/ChangeLog

+2013-02-04  Vin Shelton  <acs@xemacs.org>
+
+	* syswindows.h: Fix the cygwin build by supporting win32api 3.14
+	through appropriate guard macros.  Thanks to Mats Lidell.
+
 2013-01-22  Jerry James  <james@xemacs.org>
 
 	* general-slots.h: Add Q_visible.

File src/syswindows.h

 
 #endif /* not NMCBEDRAGBEGIN */
 
+#if W32API_INSTALLED_VER < W32API_VER(3,14)
 typedef struct tagNMDATETIMEFORMATA
 {
   NMHDR nmhdr;
   LPCWSTR pszDisplay;
   WCHAR szDisplay[64];
 } NMDATETIMEFORMATW, FAR * LPNMDATETIMEFORMATW;
+#endif
 
 #if W32API_INSTALLED_VER < W32API_VER(2,2)
 
 #define OIC_WINLOGO         32517
 #endif
 
+#if W32API_INSTALLED_VER < W32API_VER(3,14)
 /* More Cygwin stupidity: Current w32api's winuser.h has IME message
    constants and they conflict with imm.h. (NOTE: Currently fixed, but
    I'm sure the problems were present post 1.0.) */
 #undef WM_IME_CHAR
 #undef WM_IME_KEYDOWN
 #undef WM_IME_KEYUP
+#endif
 
 #include <imm.h>
 
 typedef LPCDLGTEMPLATE LPCDLGTEMPLATEW;
 typedef LPCDLGTEMPLATE LPCDLGTEMPLATEA;
 
+#if W32API_VER(3,14) <= W32API_INSTALLED_VER
+typedef LPCVOID PCVOID;
+#endif
+
 #else /* !CYGWIN_HEADERS */
 
 #define W32API_VER(major,minor) 0