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