This avoids problems with linking applications that include comutil.h,
but not comdef.h.
Please review.
---
mingw-w64-headers/include/comutil.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/mingw-w64-headers/include/comutil.h b/mingw-w64-headers/include/comutil.h
index 57f9ea3..f6d7adc 100644
--- a/mingw-w64-headers/include/comutil.h
+++ b/mingw-w64-headers/include/comutil.h
@@ -1211,6 +1211,10 @@ extern _variant_t vtMissing;
#pragma pop_macro("new")
+/* We use _com_issue_error here, but we only provide its inline version in comdef.h,
+ * so we need to make sure that it's included as well. */
+#include <comdef.h>
+
#endif /* __cplusplus */
#endif
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public