all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Kazuhiro Ito <kzhr@d1.dion.ne.jp>
Cc: 12464-done@debbugs.gnu.org
Subject: bug#12464: 24.2.50; nt/configure.bat fails to detect giflib-5.0.0
Date: Tue, 18 Sep 2012 13:52:12 +0300	[thread overview]
Message-ID: <83ehlz1u3n.fsf@gnu.org> (raw)
In-Reply-To: <87wqzraafe.wl%%xmue@d1.dion.ne.jp>

> Date: Tue, 18 Sep 2012 19:32:21 +0900
> From: Kazuhiro Ito <kzhr@d1.dion.ne.jp>
> Cc: 12464@debbugs.gnu.org
> 
> > Does it work to use stddef.h instead of stdio.h?  stddef.h is where
> > size_t is normally defined.
> 
> Yes, stddef.h also works.  I didn't care where size_t is defined.

Thanks, I committed the change below to fix this, as trunk revision
110088, and I'm marking the bug as done.

=== modified file 'nt/ChangeLog'
--- nt/ChangeLog	2012-09-17 13:22:45 +0000
+++ nt/ChangeLog	2012-09-18 10:49:33 +0000
@@ -1,3 +1,8 @@
+2012-09-18  Eli Zaretskii  <eliz@gnu.org>
+
+	* configure.bat: Include stddef.h before gif_lib.h, to have size_t
+	defined, as needed by giflib-5.0.0.  (Bug#12464)
+
 2012-09-17  Juanma Barranquero  <lekktu@gmail.com>
 
 	* config.nt: Sync with autogen/config.in.

=== modified file 'nt/configure.bat'
--- nt/configure.bat	2012-09-08 11:20:32 +0000
+++ nt/configure.bat	2012-09-18 10:49:33 +0000
@@ -627,7 +627,10 @@ rm -f junk.c junk.obj
 if (%gifsupport%) == (N) goto gifDone
 
 echo Checking for libgif...
-echo #include "gif_lib.h" >junk.c
+rem giflib-5.0.0 needs size_t defined before gif_lib.h is included
+rem redirection characters need to be protected from the shell
+echo #include ^<stddef.h^> >junk.c
+echo #include "gif_lib.h" >>junk.c
 echo main (){} >>junk.c
 rem   -o option is ignored with cl, but allows result to be consistent.
 echo %COMPILER% %usercflags% %mingwflag% -c junk.c -o junk.obj >>config.log






      reply	other threads:[~2012-09-18 10:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-18  9:13 bug#12464: 24.2.50; nt/configure.bat fails to detect giflib-5.0.0 Kazuhiro Ito
2012-09-18 10:04 ` Eli Zaretskii
2012-09-18 10:32   ` Kazuhiro Ito
2012-09-18 10:52     ` Eli Zaretskii [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83ehlz1u3n.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=12464-done@debbugs.gnu.org \
    --cc=kzhr@d1.dion.ne.jp \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.