]> git.eshelyaron.com Git - emacs.git/commitdiff
[HAVE_JPEG]: Work around a warning about HAVE_STDLIB_H
authorGerd Moellmann <gerd@gnu.org>
Tue, 24 Aug 1999 19:25:06 +0000 (19:25 +0000)
committerGerd Moellmann <gerd@gnu.org>
Tue, 24 Aug 1999 19:25:06 +0000 (19:25 +0000)
being redefined in jconfig.h.

src/xfns.c

index ea1913e47fa8fe897f2964643ac6cfaeecfef295..468b7c37a22586985ce7783d7b63dab58ee9db87 100644 (file)
@@ -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 <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));