# HG changeset patch # User Jan Dj¸«£rv # Date 1079704628 0 # Node ID 5755a6bed7a0d848650080ee9ca94644b787c1c3 # Parent 81368dcb68dd41cfe31433c75e003ad220197f48 xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM to compile on non-window system. diff -r 81368dcb68dd -r 5755a6bed7a0 src/ChangeLog --- a/src/ChangeLog Fri Mar 19 13:17:16 2004 +0000 +++ b/src/ChangeLog Fri Mar 19 13:57:08 2004 +0000 @@ -1,3 +1,8 @@ +2004-03-19 Jan Dj,Ad(Brv + + * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM + to compile on non-window system. + 2004-03-19 Kim F. Storm * dispextern.h (calc_pixel_width_or_height): Add prototype. diff -r 81368dcb68dd -r 5755a6bed7a0 src/xdisp.c --- a/src/xdisp.c Fri Mar 19 13:17:16 2004 +0000 +++ b/src/xdisp.c Fri Mar 19 13:57:08 2004 +0000 @@ -16886,6 +16886,7 @@ if (SYMBOLP (car)) { +#ifdef HAVE_WINDOW_SYSTEM if (valid_image_p (prop)) { int id = lookup_image (it->f, prop); @@ -16893,7 +16894,7 @@ return OK_PIXELS (width_p ? img->width : img->height); } - +#endif if (EQ (car, Qplus) || EQ (car, Qminus)) { int first = 1;