mirror of https://github.com/YosysHQ/yosys.git
libs/fst: Fix Cygwin compat
This commit is contained in:
parent
a8a65db0bc
commit
16a595004c
|
@ -43,7 +43,7 @@
|
||||||
* mmap compatibility
|
* mmap compatibility
|
||||||
*/
|
*/
|
||||||
-#if defined __MINGW32__
|
-#if defined __MINGW32__
|
||||||
+#if defined __CYGWIN__ || defined __MINGW32__ || defined _MSC_VER
|
+#if defined __MINGW32__ || defined _MSC_VER
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#define fstMmap(__addr,__len,__prot,__flags,__fd,__off) fstMmap2((__len), (__fd), (__off))
|
#define fstMmap(__addr,__len,__prot,__flags,__fd,__off) fstMmap2((__len), (__fd), (__off))
|
||||||
#define fstMunmap(__addr,__len) UnmapViewOfFile((LPCVOID)__addr)
|
#define fstMunmap(__addr,__len) UnmapViewOfFile((LPCVOID)__addr)
|
||||||
|
|
|
@ -341,7 +341,7 @@ return(NULL);
|
||||||
/*
|
/*
|
||||||
* mmap compatibility
|
* mmap compatibility
|
||||||
*/
|
*/
|
||||||
#if defined __CYGWIN__ || defined __MINGW32__ || defined _MSC_VER
|
#if defined __MINGW32__ || defined _MSC_VER
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#define fstMmap(__addr,__len,__prot,__flags,__fd,__off) fstMmap2((__len), (__fd), (__off))
|
#define fstMmap(__addr,__len,__prot,__flags,__fd,__off) fstMmap2((__len), (__fd), (__off))
|
||||||
#define fstMunmap(__addr,__len) UnmapViewOfFile((LPCVOID)__addr)
|
#define fstMunmap(__addr,__len) UnmapViewOfFile((LPCVOID)__addr)
|
||||||
|
|
Loading…
Reference in New Issue