X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=zone.c;h=60598cd8ab2a8895f683311b26c568264a3026d1;hp=b357a013aeec18f0c7d491a081608c37c6c764c7;hb=d7c6a4d737c8f59bab92b37e0039882aa88a6dc8;hpb=3f1a6f4ef01a194e2f48ccc26c9e136c6057e8bb diff --git a/zone.c b/zone.c index b357a013..60598cd8 100644 --- a/zone.c +++ b/zone.c @@ -146,6 +146,9 @@ static void mmap_free(void *mem) // (Windows growing its swapfile for example) static void *attempt_malloc(size_t size) { +#ifndef WIN32 + return malloc(size); +#else void *base; // try for half a second or so unsigned int attempts = 500; @@ -157,6 +160,7 @@ static void *attempt_malloc(size_t size) Sys_Sleep(1000); } return NULL; +#endif } #endif