changeset 604:fa3b8eb89cb2

[xemacs-hg @ 2001-06-02 05:40:49 by ben] event-msw.c: conditionalize the messages that were causing compile errors. (if only macros could generate #ifdef statements ...)
author ben
date Sat, 02 Jun 2001 05:40:53 +0000
parents 1c880911c386
children 47823c2cf014
files src/ChangeLog src/event-msw.c
diffstat 2 files changed, 13 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Fri Jun 01 08:23:12 2001 +0000
+++ b/src/ChangeLog	Sat Jun 02 05:40:53 2001 +0000
@@ -1,3 +1,9 @@
+2001-06-01  Ben Wing  <ben@xemacs.org>
+
+	* event-msw.c (debug_mswin_messages):
+	conditionalize the messages that were causing compile errors.
+	(if only macros could generate #ifdef statements ...)
+
 2001-06-01  Martin Buchholz  <martin@xemacs.org>
 
 	* lisp.h (DECIMAL_PRINT_SIZE): New.
--- a/src/event-msw.c	Fri Jun 01 08:23:12 2001 +0000
+++ b/src/event-msw.c	Sat Jun 02 05:40:53 2001 +0000
@@ -3774,7 +3774,9 @@
 FROB (WM_NCPAINT)
 FROB (WM_NCACTIVATE)
 FROB (WM_GETDLGCODE)
+#ifdef WM_SYNCPAINT /* not in VC 5 */
 FROB (WM_SYNCPAINT)
+#endif /* WM_SYNCPAINT */
 FROB (WM_NCMOUSEMOVE)
 FROB (WM_NCLBUTTONDOWN)
 FROB (WM_NCLBUTTONUP)
@@ -3797,12 +3799,13 @@
 FROB (WM_SYSDEADCHAR)
 FROB (WM_KEYLAST)
 
-#if(WINVER >= 0x0400)
+#if(WINVER >= 0x0400) && defined (WM_IME_STARTCOMPOSITION)
+/* not in Cygwin? */ 
 FROB (WM_IME_STARTCOMPOSITION)
 FROB (WM_IME_ENDCOMPOSITION)
 FROB (WM_IME_COMPOSITION)
 FROB (WM_IME_KEYLAST)
-#endif /* WINVER >= 0x0400 */
+#endif /* WINVER >= 0x0400 && defined (WM_IME_STARTCOMPOSITION) */
 
 FROB (WM_INITDIALOG)
 FROB (WM_COMMAND)
@@ -3886,6 +3889,7 @@
 FROB (WM_DROPFILES)
 FROB (WM_MDIREFRESHMENU)
 
+#ifdef WM_IME_SETCONTEXT /* not in Cygwin? */
 
 #if(WINVER >= 0x0400)
 FROB (WM_IME_SETCONTEXT)
@@ -3903,6 +3907,7 @@
 FROB (WM_IME_KEYUP)
 #endif /* WINVER >= 0x0400 */
 
+#endif /* WM_IME_SETCONTEXT */
 
 #if(_WIN32_WINNT >= 0x0400)
 FROB (WM_MOUSEHOVER)