Bläddra i källkod

Conditionally omit reference to CancelSynchronousIo in Thread.hp when MINGW32/64 is detected for libzt build - Symbol not supported

Joseph Henry 7 år sedan
förälder
incheckning
f2c69ede96
1 ändrade filer med 2 tillägg och 0 borttagningar
  1. 2 0
      osdep/Thread.hpp

+ 2 - 0
osdep/Thread.hpp

@@ -90,8 +90,10 @@ public:
 	// Not available on *nix platforms
 	// Not available on *nix platforms
 	static inline void cancelIO(const Thread &t)
 	static inline void cancelIO(const Thread &t)
 	{
 	{
+#if !defined(__MINGW32__) && !defined(__MINGW64__) // CancelSynchronousIo not available in MSYS2
 		if (t._th != NULL)
 		if (t._th != NULL)
 			CancelSynchronousIo(t._th);
 			CancelSynchronousIo(t._th);
+#endif
 	}
 	}
 
 
 	inline operator bool() const { return (_th != NULL); }
 	inline operator bool() const { return (_th != NULL); }