From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Preprocessor defines in MS-Windows build Date: Sun, 08 Jun 2008 09:36:16 +0300 Message-ID: References: <484B0458.7080604@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1212907045 26411 80.91.229.12 (8 Jun 2008 06:37:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 8 Jun 2008 06:37:25 +0000 (UTC) Cc: emacs-devel@gnu.org To: =?iso-8859-1?Q?=D3scar_Fuentes?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jun 08 08:38:08 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 1K5EXX-000570-LI for ged-emacs-devel@m.gmane.org; Sun, 08 Jun 2008 08:38:07 +0200 Original-Received: from localhost ([127.0.0.1]:40989 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K5EWk-0005uZ-71 for ged-emacs-devel@m.gmane.org; Sun, 08 Jun 2008 02:37:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K5EWf-0005uG-PQ for emacs-devel@gnu.org; Sun, 08 Jun 2008 02:37:13 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K5EWe-0005tw-CA for emacs-devel@gnu.org; Sun, 08 Jun 2008 02:37:12 -0400 Original-Received: from [199.232.76.173] (port=44959 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K5EWe-0005tt-7Q for emacs-devel@gnu.org; Sun, 08 Jun 2008 02:37:12 -0400 Original-Received: from mtaout7.012.net.il ([84.95.2.19]:47698) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K5EWd-0005Rn-Qd for emacs-devel@gnu.org; Sun, 08 Jun 2008 02:37:12 -0400 Original-Received: from HOME-C4E4A596F7 ([80.230.28.131]) by i-mtaout7.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0K2400CXKS8NK0A0@i-mtaout7.012.net.il> for emacs-devel@gnu.org; Sun, 08 Jun 2008 09:19:36 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-kernel: by monty-python.gnu.org: Solaris 10 (1203?) 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:98670 Archived-At: > From: =?iso-8859-1?Q?=D3scar_Fuentes?= > Date: Sun, 08 Jun 2008 01:53:29 +0200 > > Jason Rumney writes: > > > Eli Zaretskii wrote: > >> _X86_ -- not needed, defined automatically by MinGW > >> headers > >> i386 -- not needed > >> > > > > They may not be needed for a mingw build, but do the msvc headers also > > define them? > > I quick check for VC6 does not find i386. _X86_ is in WINDOWS.H Sorry, I don't see any significance of this for MSVC. Jason, are you saying that compiling _any_ program with cl, the MS compiler, _requires_ the -Di386 and -D_X86_ switches? I don't think so. If not, then why do we need to tell cl it is compiling an x86 program? it should know that by default. Can someone with MSVC please see if removing these two switches causes any trouble? > >> USE_CRT_DLL -- looks like it's unneeded, since we never use > >> anything but the CRTDLL.dll runtime > > > > I think there was at least an experimental attempt many years ago to > > use MSVCRT.dll with the msvc compiler, and if we are ever to get more > > recent versions of msvc working again it will be necessary to keep > > this around. > > CRTDLL.dll (?) is not on the list of loaded dll's for an Emacs > process. MSVCRT.dll is. Yes, so what do we need USE_CRT_DLL for, again?