From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#720: Patch to fix CVS Emacs compilation error on Windows XP SP2. Date: Fri, 15 Aug 2008 19:15:12 +0300 Message-ID: References: Reply-To: Eli Zaretskii , 720@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1218817724 25083 80.91.229.12 (15 Aug 2008 16:28:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 15 Aug 2008 16:28:44 +0000 (UTC) Cc: 720@emacsbugs.donarmstrong.com To: Francis Litterio Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 15 18:29:36 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KU2BD-00034U-5o for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Aug 2008 18:29:35 +0200 Original-Received: from localhost ([127.0.0.1]:36776 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KU2AF-0005Dm-Rx for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Aug 2008 12:28:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KU29M-0004Yj-CJ for bug-gnu-emacs@gnu.org; Fri, 15 Aug 2008 12:27:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KU29K-0004Xc-DL for bug-gnu-emacs@gnu.org; Fri, 15 Aug 2008 12:27:39 -0400 Original-Received: from [199.232.76.173] (port=34716 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KU29K-0004XS-1e for bug-gnu-emacs@gnu.org; Fri, 15 Aug 2008 12:27:38 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:50075) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KU29I-0007Hq-Vm for bug-gnu-emacs@gnu.org; Fri, 15 Aug 2008 12:27:37 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7FGRP5C023338; Fri, 15 Aug 2008 09:27:26 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m7FGP71L022262; Fri, 15 Aug 2008 09:25:07 -0700 X-Loop: don@donarmstrong.com Resent-From: Eli Zaretskii Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs , don@donarmstrong.com Resent-Date: Fri, 15 Aug 2008 16:25:07 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 720 X-Emacs-PR-Package: emacs,w32 X-Emacs-PR-Keywords: patch Original-Received: via spool by 720-submit@emacsbugs.donarmstrong.com id=B720.121881697120217 (code B ref 720); Fri, 15 Aug 2008 16:25:07 +0000 Original-Received: (at 720) by emacsbugs.donarmstrong.com; 15 Aug 2008 16:16:11 +0000 Original-Received: from mtaout5.012.net.il (mtaout5.012.net.il [84.95.2.13]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7FGG7Bv020211 for <720@emacsbugs.donarmstrong.com>; Fri, 15 Aug 2008 09:16:08 -0700 Original-Received: from HOME-C4E4A596F7 ([84.229.211.50]) by i_mtaout5.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0K5N00H36H5ZV5C0@i_mtaout5.012.net.il> for 720@emacsbugs.donarmstrong.com; Fri, 15 Aug 2008 19:15:35 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Fri, 15 Aug 2008 12:27:39 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:19465 Archived-At: > Date: Fri, 15 Aug 2008 09:22:31 -0400 > From: Francis Litterio > > Eli Zaretskii wrote: > > >> From: Francis Litterio > >> > >> w32.c(3820) : error C2520: conversion from unsigned __int64 to double not implemented, use signed __int64 > > > > "Not implemented"? I'm not sure we want to support such a deficient > > compiler. > > I would happily use a newer compiler. The file emacs/nt/INSTALL says > this: > > To compile Emacs, you will need either Microsoft Visual C++ 2.0, or > later up to 7.0, and nmake > > I didn't realize that I could use a version of VC++ newer than 6.0. I > would be happy to abandon 6.0 for building Emacs on Windows. Is VC++ > 7.0 the compiler that comes with Visual Studio 2003? Yes. > What compiler do the Emacs developers use to build on Windows? The MinGW port of GCC. > > How about this: > > > > DWORD tot_hi = memstex.ullTotalPhys >> 32; > > DWORD tot_md = (memstex.ullTotalPhys & 0x00000000ffffffffLL) >> 10; > > DWORD tot_lo = memstex.ullTotalPhys % 1024LL; > > totphys = tot_hi * 4194304.0 + tot_md + tot_lo / 1024.0; > > > > Does this work? > > Nope: > > w32.c(3823) : error C2059: syntax error : 'bad suffix on number' > w32.c(3823) : error C2146: syntax error : missing ')' before identifier 'L' > w32.c(3823) : error C2059: syntax error : ')' > w32.c(3824) : error C2059: syntax error : 'bad suffix on number' > w32.c(3824) : error C2146: syntax error : missing ';' before identifier 'L' > w32.c(3824) : error C2065: 'L' : undeclared identifier Does it mean that the LL suffix is not supported in VS 6? Can you try the same without the 2 LL suffixes?