From ba06aba44f276378c44a0e17de6ad62dd4748df6 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Tue, 24 Aug 1999 19:25:06 +0000 Subject: [PATCH] [HAVE_JPEG]: Work around a warning about HAVE_STDLIB_H being redefined in jconfig.h. --- src/xfns.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/xfns.c b/src/xfns.c index ea1913e47fa..468b7c37a22 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -8257,10 +8257,21 @@ png_load (f, img) #if HAVE_JPEG +/* Work around a warning about HAVE_STDLIB_H being redefined in + jconfig.h. */ +#ifdef HAVE_STDLIB_H +#define HAVE_STDLIB_H_1 +#undef HAVE_STDLIB_H +#endif /* HAVE_STLIB_H */ + #include #include #include +#ifdef HAVE_STLIB_H_1 +#define HAVE_STDLIB_H 1 +#endif + static int jpeg_image_p P_ ((Lisp_Object object)); static int jpeg_load P_ ((struct frame *f, struct image *img)); -- 2.39.5