I'm not sure if there is a canonical or recommended method as such, but is that enough?
#define CompareUUIDs(u1, u2) memcmp(CFUUIDGetUUIDBytes(u1), CFUUIDGetUUIDBytes(u2))
It will be used as follows:
if (CompareUUIDs(u1, u2) == 0) {
}
, , :
#define UUIDsAreEqual(u1, u2) (memcmp(CFUUIDGetUUIDBytes(u1), CFUUIDGetUUIDBytes(u2)) == 0)
:
if (UUIDsAreEqual(u1, u2)) {
}