From 4fc0b72e987f4f3732e2805d6f528954c22ce8d1 Mon Sep 17 00:00:00 2001 From: Dave Love Date: Wed, 31 Jul 2002 22:37:38 +0000 Subject: [PATCH] Change logic (instead of fixing typo). --- src/xfns.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/xfns.c b/src/xfns.c index 51acdec4044..9be7f7c337c 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -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 +# include +# define HAVE_STDLIB_H 1 +#else +# include +# include +#endif /* HAVE_STDLIB_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