Subject: Re: bug#19050: Fail compile emacs with jpeg library on MinGW32

From: Eli Zaretskii <[email-masked]>
Date: Fri, 14 Nov 2014 08:02:47 +0200

> From: Lin Sun (孙林) <[email-masked]>
> Date: Fri, 14 Nov 2014 00:58:49 +0000
> 
> Fail when compile emacs with jpeg library on MinGW32, then change the
> 
> code to follow clip will compile successful,
> 
> @@ -6189,7 +6189,7 @@ jpeg_image_p (Lisp_Object object)
> 
> different name. This name, jpeg_boolean, remains in effect through
> 
> the rest of image.c.
> 
> */
> 
> -#if defined CYGWIN && defined HAVE_NTGUI
> 
> +#if defined HAVE_NTGUI
> 
> #define boolean jpeg_boolean
> 
> #endif
> 
> #include <jpeglib.h>
> 
> and the configure command is:
> 
> ../emacs-24.4.src/configure --with-w32

What version of libjpeg are you using, and where did you download it
from?

(And why are you using the --with-w32 option to configure when
building a MinGW port of Emacs?)