From: Philipp Stephani Date: Thu, 8 Jun 2017 23:27:39 +0000 (+0200) Subject: Fix another compiler warning on macOS X-Git-Tag: emacs-26.0.90~521^2~141 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=517c704a6360356e62752f581c71b38a479e2f59;p=emacs.git Fix another compiler warning on macOS * src/image.c (x_query_frame_background_color): Don't define if we have NextStep but no image support. --- diff --git a/src/image.c b/src/image.c index 3ebf469e8b3..429777ce511 100644 --- a/src/image.c +++ b/src/image.c @@ -1269,8 +1269,7 @@ image_background_transparent (struct image *img, struct frame *f, XImagePtr_or_D return img->background_transparent; } -#if defined (HAVE_PNG) || defined (HAVE_NS) \ - || defined (HAVE_IMAGEMAGICK) || defined (HAVE_RSVG) +#if defined (HAVE_PNG) || defined (HAVE_IMAGEMAGICK) || defined (HAVE_RSVG) /* Store F's background color into *BGCOLOR. */ static void @@ -1284,7 +1283,7 @@ x_query_frame_background_color (struct frame *f, XColor *bgcolor) #endif } -#endif /* HAVE_PNG || HAVE_NS || HAVE_IMAGEMAGICK || HAVE_RSVG */ +#endif /* HAVE_PNG || HAVE_IMAGEMAGICK || HAVE_RSVG */ /*********************************************************************** Helper functions for X image types