From: Eli Zaretskii <eliz@gnu.org>
To: 李丁 <iamliding@gmail.com>
Cc: 12878@debbugs.gnu.org
Subject: bug#12878: 24.2; Compiling failed on Windows 7 with VC 11 Express: _WIN32_WINNT version too low
Date: Tue, 13 Nov 2012 18:33:52 +0200 [thread overview]
Message-ID: <83haotv4wf.fsf@gnu.org> (raw)
In-Reply-To: <CAFEVBLtZNkWdkdYHL9RQxgMsccpmFmOb7ybmgk1vOAEgYOOKaw@mail.gmail.com>
> Date: Tue, 13 Nov 2012 19:11:34 +0800
> From: 李丁 <iamliding@gmail.com>
>
> I tried to compile emacs 24.2 on Windows 7 with Visual C++ 11.0 Express,
> and I found that EnumSystemLocales in w32proc.c and w32select.c were
> compiled as is (not as __stdcall function with postfix decorations), which
> causes the linking failure.
>
> I read through the sources and found that config.h defined _WIN32_WINNT as
> 0x0400, which corresponds to Windows NT4. However MSDN says that
> EnumSystemLocales requires at least Windows 2000 (0x0500). So you should
> probably either require a higher Windows version or use some other
> mechanism to accomplish what EnumSystemLocales does.
Would adding a correct prototype for EnumSystemLocales to w32term.h
(included by both source files you mention) do the trick?
(I don't want to bump up _WIN32_WINNT, because that might produce an
executable which won't run on Windows 9X, which we still try to
support.)
next prev parent reply other threads:[~2012-11-13 16:33 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-13 11:11 bug#12878: 24.2; Compiling failed on Windows 7 with VC 11 Express: _WIN32_WINNT version too low 李丁
2012-11-13 16:33 ` Eli Zaretskii [this message]
2012-11-14 1:14 ` 李丁
2012-11-14 1:32 ` 李丁
2012-11-14 3:53 ` Eli Zaretskii
2012-11-14 7:22 ` 李丁
2012-11-17 18:57 ` Eli Zaretskii
2012-11-19 5:59 ` 李丁
2012-11-19 17:42 ` Eli Zaretskii
[not found] ` <CAFEVBLvU+4+Q6_N4VqH+S9ujK4fkreDqiGPxnxVt=Msm62ZKXw@mail.gmail.com>
2012-11-20 17:09 ` Eli Zaretskii
2012-12-08 12:28 ` Eli Zaretskii
2017-06-22 1:15 ` npostavs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83haotv4wf.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=12878@debbugs.gnu.org \
--cc=iamliding@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.