bool ResourceError::platformCompare(const ResourceError& a, const ResourceError& b) { return a.cfError() == b.cfError(); }