Cesar Romani wrote:

> I'm building vim on windows 7 with MinGW. By upgrading from 7.3.566 to
> 7.3.582 I get the following compile error:
> 
> -------------------
> ...
> os_win32.c: In function 'mch_avail_mem':
> os_win32.c:5012:2: error: unknown type name 'MEMORYSTATUSEX'
> os_win32.c:5014:4: error: request for member 'dwLength' in something not 
> a structure or union
> os_win32.c:5014:23: error: 'MEMORYSTATUSEX' undeclared (first use in 
> this function)
> os_win32.c:5014:23: note: each undeclared identifier is reported only 
> once for each function it appears in
> os_win32.c:5016:21: error: request for member 'ullAvailPhys' in 
> something not a structure or union
> os_win32.c:5016:39: error: request for member 'ullAvailPageFile' in 
> something not a structure or union
> make: *** [gobjZ/os_win32.o] Error 1
> Error by compiling gvim.exe
> --------------------
> 
> Many thanks in advance,

Is that the latest version of MingW?  MEMORYSTATUSEX is a standard part
of Windows XP and later.

Hmm, I found a suggestion to put this before including windows.h:

#define _WIN32_WINNT  0x0501

We have never needed that for other features, thus I doubt that is the
right solution.

We could use #ifdef MEMORYSTATUSEX, but is it really a #define in all
header files?

-- 
hundred-and-one symptoms of being an internet addict:
89. In addition to your e-mail address being on your business
    cards you even have your own domain.

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui