From 16defa342cfa6b1ebf0d3b46b3e4225ad4218d23 Mon Sep 17 00:00:00 2001 From: Alistair Leslie-Hughes Date: Fri, 17 May 2019 09:10:46 +1000 Subject: [PATCH] include: Stop macro redefined on the mac build --- 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