include: Use unsigned int in InlineIsEqualGUID.
This fixes stand-alone inclusion of <guiddef.h> (without first including <basetsd.h>). Signed-off-by: Kevin Puetz <PuetzKevinA@JohnDeere.com> Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
ea90e1ce0d
commit
aa4f8daf99
|
@ -156,18 +156,18 @@ typedef GUID FMTID,*LPFMTID;
|
|||
#define IsEqualGUID(rguid1, rguid2) (!memcmp(&(rguid1), &(rguid2), sizeof(GUID)))
|
||||
inline int InlineIsEqualGUID(REFGUID rguid1, REFGUID rguid2)
|
||||
{
|
||||
return (((ULONG *)&rguid1)[0] == ((ULONG *)&rguid2)[0] &&
|
||||
((ULONG *)&rguid1)[1] == ((ULONG *)&rguid2)[1] &&
|
||||
((ULONG *)&rguid1)[2] == ((ULONG *)&rguid2)[2] &&
|
||||
((ULONG *)&rguid1)[3] == ((ULONG *)&rguid2)[3]);
|
||||
return (((unsigned int *)&rguid1)[0] == ((unsigned int *)&rguid2)[0] &&
|
||||
((unsigned int *)&rguid1)[1] == ((unsigned int *)&rguid2)[1] &&
|
||||
((unsigned int *)&rguid1)[2] == ((unsigned int *)&rguid2)[2] &&
|
||||
((unsigned int *)&rguid1)[3] == ((unsigned int *)&rguid2)[3]);
|
||||
}
|
||||
#else
|
||||
#define IsEqualGUID(rguid1, rguid2) (!memcmp(rguid1, rguid2, sizeof(GUID)))
|
||||
#define InlineIsEqualGUID(rguid1, rguid2) \
|
||||
(((ULONG *)rguid1)[0] == ((ULONG *)rguid2)[0] && \
|
||||
((ULONG *)rguid1)[1] == ((ULONG *)rguid2)[1] && \
|
||||
((ULONG *)rguid1)[2] == ((ULONG *)rguid2)[2] && \
|
||||
((ULONG *)rguid1)[3] == ((ULONG *)rguid2)[3])
|
||||
(((unsigned int *)rguid1)[0] == ((unsigned int *)rguid2)[0] && \
|
||||
((unsigned int *)rguid1)[1] == ((unsigned int *)rguid2)[1] && \
|
||||
((unsigned int *)rguid1)[2] == ((unsigned int *)rguid2)[2] && \
|
||||
((unsigned int *)rguid1)[3] == ((unsigned int *)rguid2)[3])
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
Loading…
Reference in New Issue