[PATCH] include: Stop macro redefined on the mac build

Alistair Leslie-Hughes leslie_alistair at hotmail.com
Thu May 16 21:09:46 CDT 2019


Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
---
 include/winerror.h | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/include/winerror.h b/include/winerror.h
index 32680e0..d58aee8 100644
--- a/include/winerror.h
+++ b/include/winerror.h
@@ -66,6 +66,22 @@
 #define SEVERITY_SUCCESS    0
 #define SEVERITY_ERROR      1
 
+#undef MAKE_HRESULT
+#undef SUCCEEDED
+#undef FAILED
+#undef IS_ERROR
+#undef HRESULT_FACILITY
+#undef S_OK
+#undef S_FALSE
+#undef E_NOTIMPL
+#undef E_NOINTERFACE
+#undef E_POINTER
+#undef E_ABORT
+#undef E_FAIL
+#undef E_UNEXPECTED
+#undef E_HANDLE
+#undef E_OUTOFMEMORY
+#undef E_INVALIDARG
 
 #define MAKE_HRESULT(sev,fac,code) \
     ((HRESULT) (((unsigned int)(sev)<<31) | ((unsigned int)(fac)<<16) | ((unsigned int)(code))) )
-- 
1.9.1



More information about the wine-devel mailing list