changeset 5256:6c8f5574d4a1

Fix the C++, Visual Studio 2005 builds. src/ChangeLog addition: 2010-09-03 Aidan Kehoe <kehoea@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.
author Aidan Kehoe <kehoea@parhasard.net>
date Fri, 03 Sep 2010 15:35:53 +0100
parents b5611afbcc76
children 30bf66dd3ca0
files src/ChangeLog src/fontcolor-msw.c src/symsinit.h
diffstat 3 files changed, 13 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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@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@parhasard.net>
 
 	* strftime.c (roman_upper, roman_lower, strftime):
--- 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;
         }
--- 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);