1 To: vim_dev@googlegroups.com
4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
10 Patch 7.3.605 (after 7.3.577)
11 Problem: MS-Windows: Can't compile with older compilers. (Titov Anatoly)
12 Solution: Add #ifdef for MEMORYSTATUSEX.
16 *** ../vim-7.3.604/src/os_win32.c 2012-06-29 15:51:26.000000000 +0200
17 --- src/os_win32.c 2012-07-19 11:35:00.000000000 +0200
21 mch_avail_mem(int special)
23 ! if (g_PlatformId != VER_PLATFORM_WIN32_NT)
27 ! ms.dwLength = sizeof(MEMORYSTATUS);
28 ! GlobalMemoryStatus(&ms);
29 ! return (long_u)((ms.dwAvailPhys + ms.dwAvailPageFile) >> 10);
35 ms.dwLength = sizeof(MEMORYSTATUSEX);
36 GlobalMemoryStatusEx(&ms);
37 return (long_u)((ms.ullAvailPhys + ms.ullAvailPageFile) >> 10);
44 mch_avail_mem(int special)
46 ! #ifdef MEMORYSTATUSEX
48 ! if (g_PlatformId == VER_PLATFORM_WIN32_NT)
52 + /* Need to use GlobalMemoryStatusEx() when there is more memory than
53 + * what fits in 32 bits. But it's not always available. */
54 ms.dwLength = sizeof(MEMORYSTATUSEX);
55 GlobalMemoryStatusEx(&ms);
56 return (long_u)((ms.ullAvailPhys + ms.ullAvailPageFile) >> 10);
63 + ms.dwLength = sizeof(MEMORYSTATUS);
64 + GlobalMemoryStatus(&ms);
65 + return (long_u)((ms.dwAvailPhys + ms.dwAvailPageFile) >> 10);
70 *** ../vim-7.3.604/src/version.c 2012-07-16 19:27:25.000000000 +0200
71 --- src/version.c 2012-07-19 11:36:12.000000000 +0200
75 { /* Add new patch number below this line */
81 Fingers not found - Pound head on keyboard to continue.
83 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
84 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
85 \\\ an exciting new programming language -- http://www.Zimbu.org ///
86 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///