From f2c69ede9604f52da4aa885ae8d4d16a7f3fdabf Mon Sep 17 00:00:00 2001
From: Joseph Henry <josephjah@gmail.com>
Date: Tue, 10 Oct 2017 12:21:52 -0700
Subject: Conditionally omit reference to CancelSynchronousIo in Thread.hp when
 MINGW32/64 is detected for libzt build - Symbol not supported

---
 osdep/Thread.hpp | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'osdep')

diff --git a/osdep/Thread.hpp b/osdep/Thread.hpp
index a2f0919f..b3011f32 100644
--- a/osdep/Thread.hpp
+++ b/osdep/Thread.hpp
@@ -90,8 +90,10 @@ public:
 	// Not available on *nix platforms
 	static inline void cancelIO(const Thread &t)
 	{
+#if !defined(__MINGW32__) && !defined(__MINGW64__) // CancelSynchronousIo not available in MSYS2
 		if (t._th != NULL)
 			CancelSynchronousIo(t._th);
+#endif
 	}
 
 	inline operator bool() const { return (_th != NULL); }
-- 
cgit v1.2.3