xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
authorJan Djärv <jan.h.d@swipnet.se>
Fri, 19 Mar 2004 13:57:08 +0000 (13:57 +0000)
committerJan Djärv <jan.h.d@swipnet.se>
Fri, 19 Mar 2004 13:57:08 +0000 (13:57 +0000)
to compile on non-window system.

src/ChangeLog
src/xdisp.c

index 1681e9a..b7e373a 100644 (file)
@@ -1,3 +1,8 @@
+2004-03-19  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
+
+       * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
+       to compile on non-window system.
+
 2004-03-19  Kim F. Storm  <storm@cua.dk>
 
        * dispextern.h (calc_pixel_width_or_height): Add prototype.
index 1ba274d..cf8ca02 100644 (file)
@@ -16886,6 +16886,7 @@ calc_pixel_width_or_height (res, it, prop, font, width_p, align_to)
 
       if (SYMBOLP (car))
        {
+#ifdef HAVE_WINDOW_SYSTEM
          if (valid_image_p (prop))
            {
              int id = lookup_image (it->f, prop);
@@ -16893,7 +16894,7 @@ calc_pixel_width_or_height (res, it, prop, font, width_p, align_to)
 
              return OK_PIXELS (width_p ? img->width : img->height);
            }
-
+#endif
          if (EQ (car, Qplus) || EQ (car, Qminus))
            {
              int first = 1;