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 d0d0a9e commit acf6036Copy full SHA for acf6036
include/prism/defines.h
@@ -15,7 +15,6 @@
15
#include <stdint.h>
16
#include <stdio.h>
17
#include <string.h>
18
-#include <unistd.h>
19
20
/**
21
* We want to be able to use the PRI* macros for printing out integers, but on
@@ -105,8 +104,13 @@
105
104
* If the target platform is POSIX or Windows, we can map a file in memory and
106
* read it in a more efficient manner.
107
*/
108
-#if defined(_POSIX_MAPPED_FILES) || defined(_WIN32)
+#ifdef _WIN32
109
# define PRISM_HAS_MMAP
+#else
110
+# include <unistd.h>
111
+# ifdef _POSIX_MAPPED_FILES
112
+# define PRISM_HAS_MMAP
113
+# endif
114
#endif
115
116
0 commit comments