Stan
unread,Nov 23, 2009, 1:57:40 PM11/23/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Avian
Windows, at least mingw, doesn't have sys/mmap.h. Instead I changed
main.cpp to use the MS equivalents for memory mapping:
17,19d16
< #ifdef WIN32
< #include <windows.h>
< #else
21d17
< #endif
159,176d154
< #ifdef WIN32
< HANDLE fm;
< HANDLE h = (HANDLE) _get_osfhandle (fd);
<
< fm = CreateFileMapping(
< h,
< NULL,
< PAGE_READONLY,
< 0,
< 0,
< NULL);
< data = static_cast<uint8_t*>(MapViewOfFile(
< fm,
< FILE_MAP_READ,
< 0,
< 0,
< s.st_size));
< #else
179d156
< #endif
181d157
<
200,202d175
< #ifdef WIN32
< UnmapViewOfFile(data);
< #else
204d176
< #endif