[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 517c704 2/2: Fix another compiler warning on macOS
From: |
Philipp Stephani |
Subject: |
[Emacs-diffs] master 517c704 2/2: Fix another compiler warning on macOS |
Date: |
Thu, 8 Jun 2017 19:28:44 -0400 (EDT) |
branch: master
commit 517c704a6360356e62752f581c71b38a479e2f59
Author: Philipp Stephani <address@hidden>
Commit: Philipp Stephani <address@hidden>
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.
---
src/image.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/image.c b/src/image.c
index 3ebf469..429777c 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