half-hearted improvements to Windows compilability

This commit is contained in:
leitner
2019-04-23 13:25:26 +00:00
parent 3aef1c2faa
commit 77a2bbd17a
9 changed files with 38 additions and 26 deletions

View File

@@ -1,14 +1,15 @@
#include <stdlib.h>
#ifndef __MINGW32__
#ifndef _WIN32
#include <sys/mman.h>
#endif
#else
#include <unistd.h>
#endif
#include "iarray.h"
static void freechain(iarray_page* p,size_t pagesize) {
while (p) {
iarray_page* n=p->next;
#ifdef __MINGW32__
#ifdef _WIN32
free(p);
#else
munmap(p,pagesize);