aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libiconv/0002-Config-for-MSVC.patch
blob: 0b40e366b997741aefb00d56be3a7a3e88c7237a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/srclib/fcntl.c b/srclib/fcntl.c
index f9753c4..02fc8be 100644
--- a/srclib/fcntl.c
+++ b/srclib/fcntl.c
@@ -37,6 +37,9 @@
 /* Get declarations of the native Windows API functions.  */
 # define WIN32_LEAN_AND_MEAN
 # include <windows.h>
+#if defined(WINAPI_FAMILY) && (WINAPI_FAMILY == WINAPI_FAMILY_APP)
+#define HANDLE_FLAG_INHERIT 0
+#endif
 
 /* Get _get_osfhandle.  */
 # if GNULIB_MSVC_NOTHROW