changeset 5164:8bf9e67e06ec

Fix broken compile of window.c under Visual Studio 6.
author Vin Shelton <acs@xemacs.org>
date Mon, 22 Mar 2010 19:04:51 -0400
parents 57f4dcb14ad5
children 17fe69fff7fa
files src/ChangeLog src/window.c
diffstat 2 files changed, 13 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Sun Mar 21 13:25:21 2010 +0000
+++ b/src/ChangeLog	Mon Mar 22 19:04:51 2010 -0400
@@ -1,3 +1,8 @@
+2010-03-22  Vin Shelton  <acs@xemacs.org>
+
+	* window.c (vars_of_window): Move HAVE_SCROLLBARS test so the code
+	can compile under Visual Studio 6.
+
 2010-03-21  Aidan Kehoe  <kehoea@parhasard.net>
 
 	* alloc.c (tick_lrecord_stats):
--- a/src/window.c	Sun Mar 21 13:25:21 2010 +0000
+++ b/src/window.c	Mon Mar 22 19:04:51 2010 -0400
@@ -5516,14 +5516,20 @@
 vars_of_window (void)
 {
 #ifdef MEMORY_USAGE_STATS
+#ifdef HAVE_SCROLLBARS
   OBJECT_HAS_PROPERTY
     (window, memusage_stats_list,
      listu (Qface_cache, Qglyph_cache,
 	    Qline_start_cache, Qother_redisplay,
-#ifdef HAVE_SCROLLBARS
 	    Qscrollbar_instances,
+	    Qunbound));
+#else
+  OBJECT_HAS_PROPERTY
+    (window, memusage_stats_list,
+     listu (Qface_cache, Qglyph_cache,
+	    Qline_start_cache, Qother_redisplay,
+	    Qunbound));
 #endif
-	    Qunbound));
 #endif /* MEMORY_USAGE_STATS */
 
   DEFVAR_BOOL ("scroll-on-clipped-lines", &scroll_on_clipped_lines /*