[svn:parrot] r49612 - trunk/config/gen/platform/win32
fperrad at svn.parrot.org
fperrad at svn.parrot.org
Wed Oct 20 17:20:01 UTC 2010
Author: fperrad
Date: Wed Oct 20 17:20:00 2010
New Revision: 49612
URL: https://trac.parrot.org/parrot/changeset/49612
Log:
[win32] fix build with mingw
Modified:
trunk/config/gen/platform/win32/sysmem.c
Modified: trunk/config/gen/platform/win32/sysmem.c
==============================================================================
--- trunk/config/gen/platform/win32/sysmem.c Wed Oct 20 11:14:50 2010 (r49611)
+++ trunk/config/gen/platform/win32/sysmem.c Wed Oct 20 17:20:00 2010 (r49612)
@@ -21,28 +21,6 @@
*/
-#define _WIN32_WINNT 0x0500
-
-#include <windows.h>
-#include <stdio.h>
-
-/* Solution copied from http://www.perlmonks.org/?node_id=749964 */
-#ifndef _MSC_VER
-typedef struct _MEMORYSTATUSEX {
- DWORD dwLength;
- DWORD dwMemoryLoad;
- DWORDLONG ullTotalPhys;
- DWORDLONG ullAvailPhys;
- DWORDLONG ullTotalPageFile;
- DWORDLONG ullAvailPageFile;
- DWORDLONG ullTotalVirtual;
- DWORDLONG ullAvailVirtual;
- DWORDLONG ullAvailExtendedVirtual;
-} MEMORYSTATUSEX, *LPMEMORYSTATUSEX;
-
-WINBASEAPI BOOL WINAPI GlobalMemoryStatusEx(LPMEMORYSTATUSEX);
-#endif
-
/*
=item C<size_t Parrot_sysmem_amount(PARROT_INTERP)>
@@ -53,8 +31,6 @@
*/
-
-
size_t
Parrot_sysmem_amount(PARROT_INTERP)
{
More information about the parrot-commits
mailing list