aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Rumney2004-05-05 23:22:41 +0000
committerJason Rumney2004-05-05 23:22:41 +0000
commit279d3293d3f011dac5965b0da2d32a3a04eccb7a (patch)
tree555c35b5ecc77cbdaf10d49285b051a0ef432e6a /src
parent971cb8347ad170e122b9f25592847734e465d915 (diff)
downloademacs-279d3293d3f011dac5965b0da2d32a3a04eccb7a.tar.gz
emacs-279d3293d3f011dac5965b0da2d32a3a04eccb7a.zip
(Display) [HAVE_NTGUI]: Redefine while loading xpm.h to avoid name clash.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/image.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 035aa78c24f..e71edf8239e 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12004-05-06 Jason Rumney <jasonr@gnu.org>
2
3 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
4 to avoid name clash.
5
12004-05-04 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> 62004-05-04 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
2 7
3 * fileio.c (barf_or_query_if_file_exists): Use lstat. 8 * fileio.c (barf_or_query_if_file_exists): Use lstat.
diff --git a/src/image.c b/src/image.c
index 4c2bdb440e8..09e497576a4 100644
--- a/src/image.c
+++ b/src/image.c
@@ -3179,13 +3179,16 @@ static int xpm_valid_color_symbols_p P_ ((Lisp_Object));
3179/* Indicate to xpm.h that we don't have Xlib. */ 3179/* Indicate to xpm.h that we don't have Xlib. */
3180#define FOR_MSW 3180#define FOR_MSW
3181/* simx.h in xpm defines XColor and XImage differently than Emacs. */ 3181/* simx.h in xpm defines XColor and XImage differently than Emacs. */
3182/* It also defines Display the same way as Emacs, but gcc 3.3 still barfs. */
3182#define XColor xpm_XColor 3183#define XColor xpm_XColor
3183#define XImage xpm_XImage 3184#define XImage xpm_XImage
3185#define Display xpm_Display
3184#define PIXEL_ALREADY_TYPEDEFED 3186#define PIXEL_ALREADY_TYPEDEFED
3185#include "X11/xpm.h" 3187#include "X11/xpm.h"
3186#undef FOR_MSW 3188#undef FOR_MSW
3187#undef XColor 3189#undef XColor
3188#undef XImage 3190#undef XImage
3191#undef Display
3189#undef PIXEL_ALREADY_TYPEDEFED 3192#undef PIXEL_ALREADY_TYPEDEFED
3190#else 3193#else
3191#include "X11/xpm.h" 3194#include "X11/xpm.h"