From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: dhruva Newsgroups: gmane.emacs.devel Subject: Build failure on Windows using MSVC Date: Fri, 15 Aug 2008 13:19:37 +0530 (IST) Message-ID: <371102.90263.qm@web95005.mail.in2.yahoo.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1218786598 28563 80.91.229.12 (15 Aug 2008 07:49:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 15 Aug 2008 07:49:58 +0000 (UTC) To: Emacs Development Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 15 09:50:49 2008 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 1KTu5B-00066X-4X for ged-emacs-devel@m.gmane.org; Fri, 15 Aug 2008 09:50:49 +0200 Original-Received: from localhost ([127.0.0.1]:54141 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KTu4E-0008EF-KV for ged-emacs-devel@m.gmane.org; Fri, 15 Aug 2008 03:49:50 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KTu48-0008DX-7l for emacs-devel@gnu.org; Fri, 15 Aug 2008 03:49:44 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KTu46-0008Cl-5l for emacs-devel@gnu.org; Fri, 15 Aug 2008 03:49:43 -0400 Original-Received: from [199.232.76.173] (port=42325 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KTu45-0008Cd-W5 for emacs-devel@gnu.org; Fri, 15 Aug 2008 03:49:42 -0400 Original-Received: from n8c.bullet.mail.tp2.yahoo.com ([203.188.202.138]:40684) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1KTu44-0002BR-6l for emacs-devel@gnu.org; Fri, 15 Aug 2008 03:49:40 -0400 Original-Received: from [203.188.202.70] by n8.bullet.mail.tp2.yahoo.com with NNFMP; 15 Aug 2008 07:49:38 -0000 Original-Received: from [202.43.196.225] by t1.bullet.mail.tp2.yahoo.com with NNFMP; 15 Aug 2008 07:49:38 -0000 Original-Received: from [203.212.168.61] by t2.bullet.tpe.yahoo.com with NNFMP; 15 Aug 2008 07:49:38 -0000 Original-Received: from [203.104.17.88] by t2.bullet.kr1.yahoo.com with NNFMP; 15 Aug 2008 07:49:38 -0000 Original-Received: from [127.0.0.1] by omp102.mail.in2.yahoo.com with NNFMP; 15 Aug 2008 07:49:37 -0000 X-Yahoo-Newman-Property: ymail-5 X-Yahoo-Newman-Id: 564614.6067.bm@omp102.mail.in2.yahoo.com Original-Received: (qmail 90705 invoked by uid 60001); 15 Aug 2008 07:49:37 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=ymail.com; h=Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=dSmgGYd4QyiskyF3sEOFzK9Yrkm4166KnzBHlHV6oSMQVATO5kL+rsTN+BBeCao/o3v+8yu/A0JM3eSKN29PgzKuJWIzR1K77gSYTilwqvy/8HN9Swk3zhc4Th+UrMDRE48e85DG8dROrb3XOMqo5fjmu5F2I+8bHahv1efmJzI=; Original-Received: from [59.92.178.72] by web95005.mail.in2.yahoo.com via HTTP; Fri, 15 Aug 2008 13:19:37 IST X-Mailer: YahooMailRC/1042.48 YahooMailWebService/0.7.218 X-detected-kernel: by monty-python.gnu.org: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) 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:102476 Archived-At: Hi,=0A Build of Emacs from HEAD on WXP using MSVC 2003 fails due to redefin= ition of a structure MEMORYSTATUSEX. The following patch fixes the issue on= WXP (W2K prof and upwards as that structure is available on W2K+). Need to= test on older versions and I have no access to it.=0A=0A=3D=3D=3D modified= file 'src/w32.c'=0A--- src/w32.c 2008-08-10 01:05:02 +0000=0A+++ src/w32= ..c 2008-08-15 07:43:51 +0000=0A@@ -73,6 +73,7 @@=0A #define _ANONYMOUS_ST= RUCT=0A #endif=0A #include =0A+#if (WINVER<0x0500)=0A /* This is= guarded by a higher value of _WIN32_WINNT than what we use. */=0A typedef= struct _MEMORYSTATUSEX {=0A DWORD dwLength;=0A@@ -85,7 +86,7 @@=0A= DWORDLONG ullAvailVirtual;=0A DWORDLONG ullAvailExtendedVi= rtual;=0A } MEMORYSTATUSEX,*LPMEMORYSTATUSEX;=0A-=0A+#endif=0A #include =0A #include =0A=0A-dhruva=0A=0A=0A=0A Add more frien= ds to your messenger and enjoy! Go to http://in.messenger.yahoo.com/invite/