From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Rosin Newsgroups: gmane.emacs.bugs Subject: bug#14830: [PATCH] * configure.ac (HAVE_W32): Avoid nested functions Date: Tue, 09 Jul 2013 10:07:28 +0200 Message-ID: <51DBC4C0.9090500@lysator.liu.se> References: <51DB4207.6080204@lysator.liu.se> <83d2qswj3w.fsf@gnu.org> <51DBAD55.3050702@lysator.liu.se> <51DBB36A.6040305@lysator.liu.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1373357292 4805 80.91.229.3 (9 Jul 2013 08:08:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Jul 2013 08:08:12 +0000 (UTC) Cc: 14830@debbugs.gnu.org To: Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 09 10:08:13 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UwSy4-0007kR-Nw for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Jul 2013 10:08:12 +0200 Original-Received: from localhost ([::1]:51023 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwSy4-0002ds-2m for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Jul 2013 04:08:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60706) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwSxw-0002bO-B9 for bug-gnu-emacs@gnu.org; Tue, 09 Jul 2013 04:08:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UwSxv-00013B-3O for bug-gnu-emacs@gnu.org; Tue, 09 Jul 2013 04:08:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46825) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwSxv-000137-0w for bug-gnu-emacs@gnu.org; Tue, 09 Jul 2013 04:08:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1UwSxu-0005JK-FG for bug-gnu-emacs@gnu.org; Tue, 09 Jul 2013 04:08:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Peter Rosin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 Jul 2013 08:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14830 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 14830-submit@debbugs.gnu.org id=B14830.137335725820355 (code B ref 14830); Tue, 09 Jul 2013 08:08:02 +0000 Original-Received: (at 14830) by debbugs.gnu.org; 9 Jul 2013 08:07:38 +0000 Original-Received: from localhost ([127.0.0.1]:41141 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UwSxV-0005IE-PA for submit@debbugs.gnu.org; Tue, 09 Jul 2013 04:07:38 -0400 Original-Received: from mail.lysator.liu.se ([130.236.254.3]:45731) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UwSxP-0005Hs-MA for 14830@debbugs.gnu.org; Tue, 09 Jul 2013 04:07:35 -0400 Original-Received: from mail.lysator.liu.se (localhost [127.0.0.1]) by mail.lysator.liu.se (Postfix) with ESMTP id C469B40013; Tue, 9 Jul 2013 10:07:29 +0200 (CEST) Original-Received: from [192.168.0.64] (90-227-119-137-no95.business.telia.com [90.227.119.137]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.lysator.liu.se (Postfix) with ESMTPSA id 4633940011; Tue, 9 Jul 2013 10:07:29 +0200 (CEST) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 In-Reply-To: X-Virus-Scanned: ClamAV using ClamSMTP X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:76119 Archived-At: On 2013-07-09 09:17, Andreas Schwab wrote: > Peter Rosin writes: > >> #include >> #include >> >> int >> main () >> { >> PIMAGE_SECTION_HEADER pSection = IMAGE_FIRST_SECTION(pHeader); > > You need to declare pHeader somewhere. Big sigh. Thanks for catching... Cheers, Peter diff --git a/ChangeLog b/ChangeLog index 220cffb..3ba3093 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-07-09 Peter Rosin (tiny change> + + * configure.ac (HAVE_W32): Avoid nested functions (the second + argument of AC_LANG_PROGRAM is already expanded inside a function). + 2013-07-08 Magnus Henoch (tiny change) * configure.ac (HAVE_IMAGEMAGICK): Check on NS also (Bug#14798). diff --git a/configure.ac b/configure.ac index 3830ee3..bb140a8 100644 --- a/configure.ac +++ b/configure.ac @@ -1635,8 +1635,8 @@ if test "${opsys}" = "mingw32"; then AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include #include ]], - [[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) -- 1.7.9