From: dhruva <dhruva@ymail.com>
To: Emacs Development <emacs-devel@gnu.org>
Subject: Build failure on Windows using MSVC
Date: Fri, 15 Aug 2008 13:19:37 +0530 (IST) [thread overview]
Message-ID: <371102.90263.qm@web95005.mail.in2.yahoo.com> (raw)
Hi,
Build of Emacs from HEAD on WXP using MSVC 2003 fails due to redefinition 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.
=== modified file 'src/w32.c'
--- src/w32.c 2008-08-10 01:05:02 +0000
+++ src/w32..c 2008-08-15 07:43:51 +0000
@@ -73,6 +73,7 @@
#define _ANONYMOUS_STRUCT
#endif
#include <windows.h>
+#if (WINVER<0x0500)
/* This is guarded by a higher value of _WIN32_WINNT than what we use. */
typedef struct _MEMORYSTATUSEX {
DWORD dwLength;
@@ -85,7 +86,7 @@
DWORDLONG ullAvailVirtual;
DWORDLONG ullAvailExtendedVirtual;
} MEMORYSTATUSEX,*LPMEMORYSTATUSEX;
-
+#endif
#include <lmcons.h>
#include <shlobj.h>
-dhruva
Add more friends to your messenger and enjoy! Go to http://in.messenger.yahoo.com/invite/
next reply other threads:[~2008-08-15 7:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-15 7:49 dhruva [this message]
2008-08-15 9:31 ` Build failure on Windows using MSVC Eli Zaretskii
2008-08-15 12:50 ` Eli Zaretskii
-- strict thread matches above, loose matches on Subject: below --
2008-08-15 12:37 dhruva
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=371102.90263.qm@web95005.mail.in2.yahoo.com \
--to=dhruva@ymail.com \
--cc=emacs-devel@gnu.org \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).