Fixes for compiling under freebsd
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@562 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
4
divers.c
4
divers.c
@@ -673,7 +673,7 @@ void Zoomer_une_ligne(byte* Ligne_originale, byte* Ligne_zoomee,
|
||||
#if defined(__WIN32__)
|
||||
#define _WIN32_WINNT 0x0500
|
||||
#include <windows.h>
|
||||
#elif defined(__macosx__)
|
||||
#elif defined(__macosx__) || defined(__FreeBSD__)
|
||||
#include <sys/sysctl.h>
|
||||
#elif defined(__BEOS__) || defined(__HAIKU__)
|
||||
// sysinfo not implemented
|
||||
@@ -701,7 +701,7 @@ unsigned long Memoire_libre(void)
|
||||
mstt.dwLength = sizeof(MEMORYSTATUSEX);
|
||||
GlobalMemoryStatusEx(&mstt);
|
||||
return mstt.ullAvailPhys;
|
||||
#elif defined(__macosx__)
|
||||
#elif defined(__macosx__) || defined(__FreeBSD__)
|
||||
int mib[2];
|
||||
int maxmem;
|
||||
size_t len;
|
||||
|
||||
Reference in New Issue
Block a user