diff options
| author | Joseph Henry <josephjah@gmail.com> | 2017-10-10 12:21:52 -0700 |
|---|---|---|
| committer | Joseph Henry <josephjah@gmail.com> | 2017-10-10 12:21:52 -0700 |
| commit | f2c69ede9604f52da4aa885ae8d4d16a7f3fdabf (patch) | |
| tree | dc9da2eca61b5b53c0f23e2a0a483f05d53f091f | |
| parent | ceeb35eaac083c1557691f7b814a0bf1af587883 (diff) | |
| download | infinitytier-f2c69ede9604f52da4aa885ae8d4d16a7f3fdabf.tar.gz infinitytier-f2c69ede9604f52da4aa885ae8d4d16a7f3fdabf.zip | |
Conditionally omit reference to CancelSynchronousIo in Thread.hp when MINGW32/64 is detected for libzt build - Symbol not supported
| -rw-r--r-- | osdep/Thread.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
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); }
|
