From: Alfred Agrell <floating(a)muncher.se> --- include/guiddef.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/guiddef.h b/include/guiddef.h index d447388aae5..5673337e397 100644 --- a/include/guiddef.h +++ b/include/guiddef.h @@ -174,6 +174,7 @@ inline int InlineIsEqualGUID(REFGUID rguid1, REFGUID rguid2) #ifdef __cplusplus #include <string.h> +extern "C++" { inline bool operator==(const GUID& guidOne, const GUID& guidOther) { return !memcmp(&guidOne,&guidOther,sizeof(GUID)); @@ -182,6 +183,7 @@ inline bool operator!=(const GUID& guidOne, const GUID& guidOther) { return !(guidOne == guidOther); } +} #endif #endif /* _GUIDDEF_H_ */ -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/8089