We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a5ee11 commit c9c820fCopy full SHA for c9c820f
main.cpp
@@ -24,6 +24,8 @@
24
#include <unistd.h>
25
#include <sys/mman.h>
26
#include <sys/stat.h>
27
+#elif defined (_POSIX_MAPPED_FILES)
28
+#include <sys/mman.h>
29
#endif
30
31
#define ROUNDUP(X, K) (((X) + (K)-1) & -(K))
mmap.h
@@ -8,11 +8,12 @@
8
#include <stdint.h>
9
#include <fcntl.h>
10
11
+
12
#ifdef __cplusplus
13
extern "C" {
14
15
-#ifdef _MSC_VER
16
+#if defined (_MSC_VER) && !(defined (_POSIX_MAPPED_FILES))
17
#define NEED_WIN32_MMAP
18
#include <Windows.h>
19
#include <io.h>
0 commit comments