- mark operators == et != of REFPROPERTYKEY as C++ externs

svn path=/trunk/; revision=53050
This commit is contained in:
Jérôme Gardou 2011-08-03 15:20:36 +00:00
parent 5c00d70fce
commit b3526a42af

View file

@ -58,6 +58,8 @@
#ifndef _PROPERTYKEY_EQUALITY_OPERATORS_ #ifndef _PROPERTYKEY_EQUALITY_OPERATORS_
#define _PROPERTYKEY_EQUALITY_OPERATORS_ #define _PROPERTYKEY_EQUALITY_OPERATORS_
#ifdef __cplusplus #ifdef __cplusplus
extern "C++"
{
inline bool operator==(REFPROPERTYKEY guidOne, REFPROPERTYKEY guidOther) inline bool operator==(REFPROPERTYKEY guidOne, REFPROPERTYKEY guidOther)
{ {
return IsEqualPropertyKey(guidOne, guidOther); return IsEqualPropertyKey(guidOne, guidOther);
@ -66,5 +68,6 @@ inline bool operator!=(REFPROPERTYKEY guidOne, REFPROPERTYKEY guidOther)
{ {
return !(guidOne == guidOther); return !(guidOne == guidOther);
} }
} //extern "C++"
#endif #endif
#endif #endif