X-Git-Url: http://git.hcoop.net/bpt/emacs.git/blobdiff_plain/a67597d62dc993d95e45ffbb5862f92315f5914e..69e847be9279a21364638f38ac4376c6f2583590:/src/w32.c diff --git a/src/w32.c b/src/w32.c index f1ed6ae0be..c2bc94fae0 100644 --- a/src/w32.c +++ b/src/w32.c @@ -94,8 +94,11 @@ typedef struct _MEMORY_STATUS_EX { #include #include +#include +#if !defined(__MINGW32__) || __W32API_MAJOR_VERSION < 3 || (__W32API_MAJOR_VERSION == 3 && __W32API_MINOR_VERSION < 15) /* This either is not in psapi.h or guarded by higher value of - _WIN32_WINNT than what we use. */ + _WIN32_WINNT than what we use. w32api suplied with MinGW 3.15 + defines it in psapi.h */ typedef struct _PROCESS_MEMORY_COUNTERS_EX { DWORD cb; DWORD PageFaultCount; @@ -109,6 +112,7 @@ typedef struct _PROCESS_MEMORY_COUNTERS_EX { DWORD PeakPagefileUsage; DWORD PrivateUsage; } PROCESS_MEMORY_COUNTERS_EX,*PPROCESS_MEMORY_COUNTERS_EX; +#endif #ifdef HAVE_SOCKETS /* TCP connection support, if kernel can do it */ #include