From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.devel Subject: Re: 23.0.50 compile problem on Windows XP Date: Fri, 05 Oct 2007 09:08:32 +0100 Message-ID: <4705F100.2000107@gnu.org> References: <47035169.8070402@gnu.org> <4703869F.6070909@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1191571733 26919 80.91.229.12 (5 Oct 2007 08:08:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 5 Oct 2007 08:08:53 +0000 (UTC) Cc: sridhar_ml@yahoo.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 05 10:08:50 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IdiEr-0003ar-H2 for ged-emacs-devel@m.gmane.org; Fri, 05 Oct 2007 10:08:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IdiEm-0001OK-ER for ged-emacs-devel@m.gmane.org; Fri, 05 Oct 2007 04:08:44 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IdiEk-0001O1-2Q for emacs-devel@gnu.org; Fri, 05 Oct 2007 04:08:42 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IdiEj-0001Nd-1v for emacs-devel@gnu.org; Fri, 05 Oct 2007 04:08:41 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IdiEi-0001Na-Ui for emacs-devel@gnu.org; Fri, 05 Oct 2007 04:08:40 -0400 Original-Received: from outmail1.freedom2surf.net ([194.106.33.237]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IdiEf-00085u-HJ; Fri, 05 Oct 2007 04:08:37 -0400 Original-Received: from [127.0.0.1] (i-83-67-23-108.freedom2surf.net [83.67.23.108]) by outmail1.freedom2surf.net (Postfix) with ESMTP id CBE5052C5D; Fri, 5 Oct 2007 09:08:36 +0100 (BST) User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) In-Reply-To: X-Detected-Kernel: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:80273 Archived-At: Eli Zaretskii wrote: > What constant? I don't see it in the MinGW headers, but maybe MSVC > headers are different. > mingw only defines abs in stdlib.h, and has no "protection" against redefinition. msvc defines it in both stdlib.h and math.h, with an #ifdef _CRT_ABS_DEFINED (and corresponding #define) around it. > And I still didn't get an answer to my question from yesterday: What > is on and around line 182 of VC's math.h that causes the failure below? > I have a different version of VC, but it seems it is the declaration of abs that causes the problem: int __cdecl abs(__in int _X); Since lisp.h has already been included, this gets expanded as the macro defined there, which causes a syntax error.