Skip to content

Instantly share code, notes, and snippets.

@hardening
Created February 17, 2022 14:25
Show Gist options
  • Save hardening/54632b0217243008775ea33e378061a5 to your computer and use it in GitHub Desktop.
Save hardening/54632b0217243008775ea33e378061a5 to your computer and use it in GitHub Desktop.
mingw builf fix
diff --git a/winpr/libwinpr/pool/pool.h b/winpr/libwinpr/pool/pool.h
index fbf48a823..9ecbb5453 100644
--- a/winpr/libwinpr/pool/pool.h
+++ b/winpr/libwinpr/pool/pool.h
@@ -27,7 +27,7 @@
#include <winpr/collections.h>
#if defined(_WIN32)
-#if (_WIN32_WINNT < _WIN32_WINNT_WIN6)
+#if (_WIN32_WINNT < _WIN32_WINNT_WIN6) || defined(__MINGW32__)
struct _TP_CALLBACK_INSTANCE
{
PTP_WORK Work;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment