libs/fst: Fix Cygwin compat

This commit is contained in:
Krystine Sherwin 2024-12-03 12:48:48 +13:00
parent a8a65db0bc
commit 16a595004c
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@
* mmap compatibility
*/
-#if defined __MINGW32__
+#if defined __CYGWIN__ || defined __MINGW32__ || defined _MSC_VER
+#if defined __MINGW32__ || defined _MSC_VER
#include <limits.h>
#define fstMmap(__addr,__len,__prot,__flags,__fd,__off) fstMmap2((__len), (__fd), (__off))
#define fstMunmap(__addr,__len) UnmapViewOfFile((LPCVOID)__addr)

View File

@ -341,7 +341,7 @@ return(NULL);
/*
* mmap compatibility
*/
#if defined __CYGWIN__ || defined __MINGW32__ || defined _MSC_VER
#if defined __MINGW32__ || defined _MSC_VER
#include <limits.h>
#define fstMmap(__addr,__len,__prot,__flags,__fd,__off) fstMmap2((__len), (__fd), (__off))
#define fstMunmap(__addr,__len) UnmapViewOfFile((LPCVOID)__addr)