Added support for _POSIX_MAPPED_FILES if defined in source (#564)

This commit is contained in:
CoderRC
2023-03-28 17:26:25 -04:00
committed by GitHub
parent 1a5ee11377
commit c9c820ff36
2 changed files with 4 additions and 1 deletions

3
mmap.h
View File

@@ -8,11 +8,12 @@
#include <stdint.h>
#include <fcntl.h>
#ifdef __cplusplus
extern "C" {
#endif
#ifdef _MSC_VER
#if defined (_MSC_VER) && !(defined (_POSIX_MAPPED_FILES))
#define NEED_WIN32_MMAP
#include <Windows.h>
#include <io.h>