]> git.eshelyaron.com Git - emacs.git/commitdiff
Avoid nexted functions in AC_LANG_PROGRAM test for Windows headers.
authorPeter Rosin <peda@lysator.liu.se>
Tue, 9 Jul 2013 18:06:25 +0000 (21:06 +0300)
committerEli Zaretskii <eliz@gnu.org>
Tue, 9 Jul 2013 18:06:25 +0000 (21:06 +0300)
 configure.ac (HAVE_W32): Avoid nested functions (the second
 argument of AC_LANG_PROGRAM is already expanded inside a
 function).

Fixes: debbugs:14830
ChangeLog
configure.ac

index 6a451c85cde16fc76e8c0c0627dc11f653867af9..579cd128ca49321559d1778ef17b173591b9928a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2013-07-09  Peter Rosin  <peda@lysator.liu.se>  (tiny change>
+
+       * configure.ac (HAVE_W32): Avoid nested functions (the second
+       argument of AC_LANG_PROGRAM is already expanded inside a
+       function).  (Bug#14830)
+
 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
 
        Port recent close-on-exec changes to Cygwin (Bug#14821).
index 3830ee38cc9001a5e5439bc61825c1c50630bf1c..bb140a86b1b6c60c908984027c844371b3ea1bc5 100644 (file)
@@ -1635,8 +1635,8 @@ if test "${opsys}" = "mingw32"; then
   AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
      #include <windows.h>
      #include <usp10.h>]],
-   [[void test(PIMAGE_NT_HEADERS pHeader)
-     {PIMAGE_SECTION_HEADER pSection = IMAGE_FIRST_SECTION(pHeader);}]])],
+   [[PIMAGE_NT_HEADERS pHeader;
+     PIMAGE_SECTION_HEADER pSection = IMAGE_FIRST_SECTION(pHeader)]])],
    [emacs_cv_w32api=yes
     HAVE_W32=yes],
    emacs_cv_w32api=no)