#include #include #ifdef __MINGW32__ #include #else #include #endif #include "open.h" #include "mmap.h" int mmap_unmap(const char* mapped,size_t maplen) { #ifdef __MINGW32__ (void)maplen; return UnmapViewOfFile(mapped)?0:-1; #else return munmap((char*)mapped,maplen); #endif }