summaryrefslogtreecommitdiff
path: root/src/w32.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2008-08-15 12:48:21 +0000
committerEli Zaretskii <eliz@gnu.org>2008-08-15 12:48:21 +0000
commit95df713d1e19c8e0df764c0d534943ad9e9a6495 (patch)
tree783add4d68d2236aa9b6a77805fa5ce1b188bddf /src/w32.c
parent0d63d159023870d805e5b8da9702fa603bd4f6bc (diff)
downloademacs-95df713d1e19c8e0df764c0d534943ad9e9a6495.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;