changeset: 5256:6c8f5574d4a1
tag: tip
user: Aidan Kehoe <kehoea(a)parhasard.net>
date: Fri Sep 03 15:35:53 2010 +0100
files: src/ChangeLog src/fontcolor-msw.c src/symsinit.h
description:
Fix the C++, Visual Studio 2005 builds.
src/ChangeLog addition:
2010-09-03 Aidan Kehoe <kehoea(a)parhasard.net>
* symsinit.h: Declare reinit_process_early() here, fixing the C++
build; thank you for pointing this out, Adam Sjogren!
* fontcolor-msw.c (mswindows_string_to_color):
Cast the result of bsearch() to a colormap_t pointer, fixing the
Visual Studio 2005 build.
diff -r b5611afbcc76 -r 6c8f5574d4a1 src/ChangeLog
--- a/src/ChangeLog Thu Sep 02 12:23:11 2010 +0100
+++ b/src/ChangeLog Fri Sep 03 15:35:53 2010 +0100
@@ -1,3 +1,11 @@
+2010-09-03 Aidan Kehoe <kehoea(a)parhasard.net>
+
+ * symsinit.h: Declare reinit_process_early() here, fixing the C++
+ build; thank you for pointing this out, Adam Sjøgren!
+ * fontcolor-msw.c (mswindows_string_to_color):
+ Cast the result of bsearch() to a colormap_t pointer, fixing the
+ Visual Studio 2005 build.
+
2010-09-02 Aidan Kehoe <kehoea(a)parhasard.net>
* strftime.c (roman_upper, roman_lower, strftime):
diff -r b5611afbcc76 -r 6c8f5574d4a1 src/fontcolor-msw.c
--- a/src/fontcolor-msw.c Thu Sep 02 12:23:11 2010 +0100
+++ b/src/fontcolor-msw.c Fri Sep 03 15:35:53 2010 +0100
@@ -1022,10 +1022,10 @@
}
*c = '\0';
- if ((res = bsearch (&key, mswindows_X_color_map,
- countof (mswindows_X_color_map),
- sizeof (mswindows_X_color_map[0]),
- colormap_t_compare)) != NULL)
+ if ((res = (colormap_t *) bsearch (&key, mswindows_X_color_map,
+ countof (mswindows_X_color_map),
+ sizeof (mswindows_X_color_map[0]),
+ colormap_t_compare)) != NULL)
{
return res->colorref;
}
diff -r b5611afbcc76 -r 6c8f5574d4a1 src/symsinit.h
--- a/src/symsinit.h Thu Sep 02 12:23:11 2010 +0100
+++ b/src/symsinit.h Fri Sep 03 15:35:53 2010 +0100
@@ -54,6 +54,7 @@
void init_errors_once_early (void);
void reinit_opaque_early (void);
void init_opaque_once_early (void);
+void reinit_process_early (void);
void reinit_symbols_early (void);
void init_symbols_once_early (void);
_______________________________________________
XEmacs-Patches mailing list
XEmacs-Patches(a)xemacs.org
http://calypso.tux.org/mailman/listinfo/xemacs-patches