summaryrefslogtreecommitdiff
path: root/src/w32.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2008-08-15 12:49:09 +0000
committerEli Zaretskii <eliz@gnu.org>2008-08-15 12:49:09 +0000
commitb8526f6ea42d5c51070f4ddddcecc44e15022995 (patch)
tree96423d2c0cf2ffaaf2c0b60908327a3e6e2c5e26 /src/w32.c
parentb7e9b5b0c8c114f3416d21f8e7632fcd78afe551 (diff)
downloademacs-b8526f6ea42d5c51070f4ddddcecc44e15022995.tar.gz
(_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX): Rename from
_MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX. All users changed.
Diffstat (limited to 'src/w32.c')
-rw-r--r--src/w32.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/w32.c b/src/w32.c
index 2407cb171be..cf4bd7bec71 100644
--- a/src/w32.c
+++ b/src/w32.c
@@ -73,8 +73,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
#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;
@@ -84,7 +85,7 @@ typedef struct _MEMORYSTATUSEX {
DWORDLONG ullTotalVirtual;
DWORDLONG ullAvailVirtual;
DWORDLONG ullAvailExtendedVirtual;
-} MEMORYSTATUSEX,*LPMEMORYSTATUSEX;
+} MEMORY_STATUS_EX,*LPMEMORY_STATUS_EX;
#include <lmcons.h>
#include <shlobj.h>
@@ -279,7 +280,7 @@ typedef BOOL (WINAPI * GetProcessWorkingSetSize_Proc) (
typedef BOOL (WINAPI * GlobalMemoryStatus_Proc) (
LPMEMORYSTATUS lpBuffer);
typedef BOOL (WINAPI * GlobalMemoryStatusEx_Proc) (
- LPMEMORYSTATUSEX lpBuffer);
+ LPMEMORY_STATUS_EX lpBuffer);
/* ** A utility function ** */
static BOOL
@@ -3459,7 +3460,7 @@ BOOL WINAPI global_memory_status (
}
BOOL WINAPI global_memory_status_ex (
- MEMORYSTATUSEX *buf)
+ MEMORY_STATUS_EX *buf)
{
static GlobalMemoryStatusEx_Proc s_pfn_Global_Memory_Status_Ex = NULL;
@@ -3658,7 +3659,7 @@ w32_system_process_attributes (pid)
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;