]> git.eshelyaron.com Git - emacs.git/commitdiff
Change logic (instead of fixing typo).
authorDave Love <fx@gnu.org>
Wed, 31 Jul 2002 22:37:38 +0000 (22:37 +0000)
committerDave Love <fx@gnu.org>
Wed, 31 Jul 2002 22:37:38 +0000 (22:37 +0000)
src/xfns.c

index 51acdec40449b27172704511172a2f00b4696dea..9be7f7c337c9d6ba0e8dd4d4016a9770f1114b13 100644 (file)
@@ -9233,18 +9233,17 @@ png_load (f, img)
 /* 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 */
+#  undef HAVE_STDLIB_H
+#  include <jpeglib.h>
+#  include <jerror.h>
+#  define HAVE_STDLIB_H 1
+#else
+#  include <jpeglib.h>
+#  include <jerror.h>
+#endif /* HAVE_STDLIB_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));