changeset 25390:4404ab9c802b

[HAVE_JPEG]: Work around a warning about HAVE_STDLIB_H being redefined in jconfig.h.
author Gerd Moellmann <gerd@gnu.org>
date Tue, 24 Aug 1999 19:25:06 +0000
parents 5221d99f4809
children 2869085f6edc
files src/xfns.c
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/xfns.c	Tue Aug 24 19:25:02 1999 +0000
+++ b/src/xfns.c	Tue Aug 24 19:25:06 1999 +0000
@@ -8257,10 +8257,21 @@
 
 #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 <jpeglib.h>
 #include <jerror.h>
 #include <setjmp.h>
 
+#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));