mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
Pacify -Wunused-macros in --without-all builds
* src/image.c (IMAGE_TYPE_INIT): Make conditional on image support.
This commit is contained in:
parent
2b869237cc
commit
35238c4fc0
1 changed files with 10 additions and 3 deletions
13
src/image.c
13
src/image.c
|
|
@ -1071,9 +1071,16 @@ struct image_type
|
|||
libraries on Windows), or NULL if none. */
|
||||
bool (*init) (void);
|
||||
/* An initializer for the init field. */
|
||||
# define IMAGE_TYPE_INIT(f) f
|
||||
#else
|
||||
# define IMAGE_TYPE_INIT(f)
|
||||
#endif
|
||||
#if defined HAVE_RSVG || defined HAVE_PNG || defined HAVE_GIF || \
|
||||
defined HAVE_TIFF || defined HAVE_JPEG || defined HAVE_XPM || \
|
||||
defined HAVE_NS || defined HAVE_HAIKU || defined HAVE_PGTK || \
|
||||
defined HAVE_WEBP
|
||||
# ifdef WINDOWSNT
|
||||
# define IMAGE_TYPE_INIT(f) f
|
||||
# else
|
||||
# define IMAGE_TYPE_INIT(f)
|
||||
# endif
|
||||
#endif
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue