+2008-08-15 Eli Zaretskii <eliz@gnu.org>
+
+ * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
+ Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
+ All users changed.
+
2008-08-14 Lawrence Mitchell <wence@gmx.li>
* lread.c (Fread_char, Fread_char_exclusive): If no character
#define _ANONYMOUS_STRUCT
#endif
#include <windows.h>
-/* This is guarded by a higher value of _WIN32_WINNT than what we use. */
-typedef struct _MEMORYSTATUSEX {
+/* Some versions of compiler define MEMORYSTATUSEX, some don't, so we
+ use a different name to avoid compilation problems. */
+typedef struct _MEMORY_STATUS_EX {
DWORD dwLength;
DWORD dwMemoryLoad;
DWORDLONG ullTotalPhys;
DWORDLONG ullTotalVirtual;
DWORDLONG ullAvailVirtual;
DWORDLONG ullAvailExtendedVirtual;
-} MEMORYSTATUSEX,*LPMEMORYSTATUSEX;
+} MEMORY_STATUS_EX,*LPMEMORY_STATUS_EX;
#include <lmcons.h>
#include <shlobj.h>
typedef BOOL (WINAPI * GlobalMemoryStatus_Proc) (
LPMEMORYSTATUS lpBuffer);
typedef BOOL (WINAPI * GlobalMemoryStatusEx_Proc) (
- LPMEMORYSTATUSEX lpBuffer);
+ LPMEMORY_STATUS_EX lpBuffer);
/* ** A utility function ** */
static BOOL
}
BOOL WINAPI global_memory_status_ex (
- MEMORYSTATUSEX *buf)
+ MEMORY_STATUS_EX *buf)
{
static GlobalMemoryStatusEx_Proc s_pfn_Global_Memory_Status_Ex = NULL;
PROCESS_MEMORY_COUNTERS_EX mem_ex;
DWORD minrss, maxrss;
MEMORYSTATUS memst;
- MEMORYSTATUSEX memstex;
+ MEMORY_STATUS_EX memstex;
double totphys = 0.0;
Lisp_Object ctime, stime, utime, etime;
double pcpu;