summaryrefslogtreecommitdiff
path: root/nt/configure.bat
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2012-09-18 13:49:33 +0300
committerEli Zaretskii <eliz@gnu.org>2012-09-18 13:49:33 +0300
commitae97707fa29a4413d23d44402dbe7dacb6e4f09a (patch)
treeabe464f759308bc1139459f669ab1c3d80000c3f /nt/configure.bat
parent9d83259abdec8e6e311b675669bc146e74ff8fb8 (diff)
downloademacs-ae97707fa29a4413d23d44402dbe7dacb6e4f09a.tar.gz
Fix bug #12464 with test for giflib 5.0.0 on MS-Windows.
nt/configure.bat: Include stddef.h before gif_lib.h, to have size_t defined, as needed by giflib-5.0.0.
Diffstat (limited to 'nt/configure.bat')
-rwxr-xr-xnt/configure.bat5
1 files changed, 4 insertions, 1 deletions
diff --git a/nt/configure.bat b/nt/configure.bat
index 5890b12d02e..7fedff411bc 100755
--- a/nt/configure.bat
+++ b/nt/configure.bat
@@ -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