+++ /dev/null
-//\r
-// Copyright (c) 2008, Wei Mingzhi. All rights reserved.\r
-//\r
-// Use, redistribution and modification of this code is unrestricted\r
-// as long as this notice is preserved.\r
-//\r
-// This code is provided with ABSOLUTELY NO WARRANTY.\r
-//\r
-\r
-#ifndef MMAN_H\r
-#define MMAN_H\r
-\r
-#include <windows.h>\r
-\r
-#define mmap(start, length, prot, flags, fd, offset) \\r
- ((unsigned char *)VirtualAlloc(NULL, (length), MEM_COMMIT | MEM_RESERVE, PAGE_EXECUTE_READWRITE))\r
-\r
-#define munmap(start, length) do { VirtualFree((start), (length), MEM_RELEASE); } while (0)\r
-\r
-#endif\r