[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Build failure on Windows using MSVC
From: |
dhruva |
Subject: |
Build failure on Windows using MSVC |
Date: |
Fri, 15 Aug 2008 13:19:37 +0530 (IST) |
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/
- Build failure on Windows using MSVC,
dhruva <=