From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?=E6=9D=8E=E4=B8=81?= Newsgroups: gmane.emacs.bugs Subject: bug#12878: 24.2; Compiling failed on Windows 7 with VC 11 Express: _WIN32_WINNT version too low Date: Wed, 14 Nov 2012 15:22:44 +0800 Message-ID: References: <83haotv4wf.fsf@gnu.org> <834nksvo0x.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d042f95f690cd9d04ce6f66ac X-Trace: ger.gmane.org 1352877817 12641 80.91.229.3 (14 Nov 2012 07:23:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 14 Nov 2012 07:23:37 +0000 (UTC) Cc: 12878@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 14 08:23:47 2012 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 1TYXK5-0001JV-VV for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 Nov 2012 08:23:46 +0100 Original-Received: from localhost ([::1]:55509 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYXJw-0005pQ-2t for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 Nov 2012 02:23:36 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:57394) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYXJr-0005pD-Lt for bug-gnu-emacs@gnu.org; Wed, 14 Nov 2012 02:23:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TYXJo-00063U-Jq for bug-gnu-emacs@gnu.org; Wed, 14 Nov 2012 02:23:31 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58480) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYXJo-00063O-G9 for bug-gnu-emacs@gnu.org; Wed, 14 Nov 2012 02:23:28 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TYXKM-0000Q2-3z for bug-gnu-emacs@gnu.org; Wed, 14 Nov 2012 02:24:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?=E6=9D=8E=E4=B8=81?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 14 Nov 2012 07:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12878 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12878-submit@debbugs.gnu.org id=B12878.13528778021558 (code B ref 12878); Wed, 14 Nov 2012 07:24:01 +0000 Original-Received: (at 12878) by debbugs.gnu.org; 14 Nov 2012 07:23:22 +0000 Original-Received: from localhost ([127.0.0.1]:40498 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TYXJi-0000P5-5n for submit@debbugs.gnu.org; Wed, 14 Nov 2012 02:23:22 -0500 Original-Received: from mail-pb0-f44.google.com ([209.85.160.44]:51395) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TYXJf-0000Ow-3v for 12878@debbugs.gnu.org; Wed, 14 Nov 2012 02:23:20 -0500 Original-Received: by mail-pb0-f44.google.com with SMTP id uo1so182162pbc.3 for <12878@debbugs.gnu.org>; Tue, 13 Nov 2012 23:22:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=1NXIpz896AZEmQ+oubR2/BcNMDb25/TaaeOqaSwYCUg=; b=D2S/LnyIh8NFzDdbDfjf3HA/nK7Z4590AnGl7qN2Bj64i+L73GLLnW0ilNN8Jysr3X QVS4KmJxsnnm/4Aqd1fMFLhbRFgpcWckzgzL3RJj2TT1Kye2Hq4Z85ATTa1Xo+HHHhmF OhDjvv1yT5n6xG3s1rbxfooq7lfccXbe0gPUktYjN4kQSn0IZ4fw4AArqq/J9O01XuXc YQjHCk1Brq8wKgidpnmNaNKHKHQRm0TbYTVfx8/POG0OBn3ynWwnEVIZ1TwibWKV/h3v 3yB/lCZnfESmbk8g1AudMASXkUM9jqsaDZT1NEqntjOLx0Zuj1sPqzwwPKJzveK/cf2w roJQ== Original-Received: by 10.66.84.131 with SMTP id z3mr4662465pay.34.1352877764300; Tue, 13 Nov 2012 23:22:44 -0800 (PST) Original-Received: by 10.68.79.134 with HTTP; Tue, 13 Nov 2012 23:22:44 -0800 (PST) In-Reply-To: <834nksvo0x.fsf@gnu.org> X-Spam-Score: 0.1 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-Spam-Score: 0.1 (/) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.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:66908 Archived-At: --f46d042f95f690cd9d04ce6f66ac Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: quoted-printable The value is 1700 2012/11/14 Eli Zaretskii > > Date: Wed, 14 Nov 2012 09:14:45 +0800 > > From: =C0=EE=B6=A1 > > Cc: 12878@debbugs.gnu.org > > > > Sure, adding a correct prototype is just like including the correct > header > > file if Windows 9X > > really supports this function. But you should be careful checking > compiler > > versions, in case that > > redefinition error occur. > > A repeated prototype can never trigger redefinition warnings or errors. > > > Actually, I encountered several redefinition problems during compilatio= n. > > For example in w32term.c: > > > > #ifndef GLYPHSET > > /* Pre Windows 2000, this was not available, but define it here so > > that Emacs compiled on such a platform will run on newer version= s. > > */ > > ... > > #endif > > > > VC 11.0 does not define GLYPHSET either (or not included), but it does > have > > the definitions, > > and above code leads to redefinition error. > > > > And this in w32term.c too: > > > > /* Reportedly, MSVC does not have this in its headers. */ > > #ifdef _MSC_VER > > DECLARE_HANDLE(HMONITOR); > > #endif > > > > VC 11.0 does have HMONITOR, and another redefinition error. > > What is the value of _MSC_VER for this compiler? > --f46d042f95f690cd9d04ce6f66ac Content-Type: text/html; charset=GB2312 Content-Transfer-Encoding: quoted-printable The value is 1700


2012/11/14 Eli Zaretskii <eliz@gnu.org>
> Date: Wed, 14 Nov 2012 09:14:45 +0800
> From: =C0=EE=B6=A1 <iamlidin= g@gmail.com>
> Cc: 12878@debbugs.gnu.org=
>
> Sure, adding a correct prototype is just like including the correct he= ader
> file if Windows 9X
> really supports this function. But you should be careful checking comp= iler
> versions, in case that
> redefinition error occur.

A repeated prototype can never trigger redefinition warnings or error= s.

> Actually, I encountered several redefinition problems during compilati= on.
> For example in w32term.c:
>
>     #ifndef GLYPHSET
>     /* Pre Windows 2000, this was not available, but define = it here so
>        that Emacs compiled on such a platform will= run on newer versions.
>  */
>     ...
>     #endif
>
> VC 11.0 does not define GLYPHSET either (or not included), but it does= have
> the definitions,
> and above code leads to redefinition error.
>
> And this in w32term.c too:
>
>     /* Reportedly, MSVC does not have this in its headers. &= nbsp;*/
>     #ifdef _MSC_VER
>     DECLARE_HANDLE(HMONITOR);
>     #endif
>
> VC 11.0 does have HMONITOR, and another redefinition error.

What is the value of _MSC_VER for this compiler?

--f46d042f95f690cd9d04ce6f66ac--