Mercurial > hg > xemacs-beta
comparison src/fontcolor-msw.c @ 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 | ec2ddc82f10d |
children | 94bbd4792049 308d34e9f07d |
comparison
equal
deleted
inserted
replaced
5255:b5611afbcc76 | 5256:6c8f5574d4a1 |
---|---|
1020 name++; | 1020 name++; |
1021 } | 1021 } |
1022 } | 1022 } |
1023 *c = '\0'; | 1023 *c = '\0'; |
1024 | 1024 |
1025 if ((res = bsearch (&key, mswindows_X_color_map, | 1025 if ((res = (colormap_t *) bsearch (&key, mswindows_X_color_map, |
1026 countof (mswindows_X_color_map), | 1026 countof (mswindows_X_color_map), |
1027 sizeof (mswindows_X_color_map[0]), | 1027 sizeof (mswindows_X_color_map[0]), |
1028 colormap_t_compare)) != NULL) | 1028 colormap_t_compare)) != NULL) |
1029 { | 1029 { |
1030 return res->colorref; | 1030 return res->colorref; |
1031 } | 1031 } |
1032 } | 1032 } |
1033 return (COLORREF) -1; | 1033 return (COLORREF) -1; |