From 16a595004cff2237c73278528245fdf30fc4db60 Mon Sep 17 00:00:00 2001 From: Krystine Sherwin <93062060+KrystalDelusion@users.noreply.github.com> Date: Tue, 3 Dec 2024 12:48:48 +1300 Subject: [PATCH] libs/fst: Fix Cygwin compat --- libs/fst/00_PATCH_win_io.patch | 2 +- libs/fst/fstapi.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/fst/00_PATCH_win_io.patch b/libs/fst/00_PATCH_win_io.patch index bf8679406..a5bc989a8 100644 --- a/libs/fst/00_PATCH_win_io.patch +++ b/libs/fst/00_PATCH_win_io.patch @@ -43,7 +43,7 @@ * mmap compatibility */ -#if defined __MINGW32__ -+#if defined __CYGWIN__ || defined __MINGW32__ || defined _MSC_VER ++#if defined __MINGW32__ || defined _MSC_VER #include #define fstMmap(__addr,__len,__prot,__flags,__fd,__off) fstMmap2((__len), (__fd), (__off)) #define fstMunmap(__addr,__len) UnmapViewOfFile((LPCVOID)__addr) diff --git a/libs/fst/fstapi.cc b/libs/fst/fstapi.cc index 74e755d31..a4329cf32 100644 --- a/libs/fst/fstapi.cc +++ b/libs/fst/fstapi.cc @@ -341,7 +341,7 @@ return(NULL); /* * mmap compatibility */ -#if defined __CYGWIN__ || defined __MINGW32__ || defined _MSC_VER +#if defined __MINGW32__ || defined _MSC_VER #include #define fstMmap(__addr,__len,__prot,__flags,__fd,__off) fstMmap2((__len), (__fd), (__off)) #define fstMunmap(__addr,__len) UnmapViewOfFile((LPCVOID)__addr)