@@ -43,6 +43,18 @@ inline Boolean LongValue( CFTypeRef o, long &n )
|
||||
return CFNumberGetValue( CFNumberRef(o), kCFNumberLongType, &n );
|
||||
}
|
||||
|
||||
namespace __gnu_cxx
|
||||
{
|
||||
template<>
|
||||
struct hash<IOHIDElementCookie> : private hash<uintptr_t>
|
||||
{
|
||||
size_t operator()( const IOHIDElementCookie& cookie ) const
|
||||
{
|
||||
return hash<unsigned long>::operator()( uintptr_t(cookie) );
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
/* This is just awful, these aren't objects, treating them as such
|
||||
* leads to: (*object)->function(object [, argument]...)
|
||||
* Instead, do: CALL(object, function [, argument]...)
|
||||
|
||||
Reference in New Issue
Block a user