@@ -1,7 +1,7 @@ /* - * Copyright (c) 2008-2021 Jonathan Schleifer + * Copyright (c) 2008-2022 Jonathan Schleifer * * All rights reserved. * * This file is part of ObjFW. It may be distributed under the terms of the * Q Public License 1.0, which can be found in the file LICENSE.QPL included in @@ -65,14 +65,14 @@ for (long i = 0; i < protocolList->count; i++) if (protocol_conformsToProtocol(protocolList->list[i], protocol)) return true; - objc_global_mutex_lock(); + objc_globalMutex_lock(); - if ((categories = objc_categories_for_class(class)) == NULL) { - objc_global_mutex_unlock(); + if ((categories = objc_categoriesForClass(class)) == NULL) { + objc_globalMutex_unlock(); return false; } for (long i = 0; categories[i] != NULL; i++) { for (struct objc_protocol_list *protocolList = @@ -79,16 +79,16 @@ categories[i]->protocols; protocolList != NULL; protocolList = protocolList->next) { for (long j = 0; j < protocolList->count; j++) { if (protocol_conformsToProtocol( protocolList->list[j], protocol)) { - objc_global_mutex_unlock(); + objc_globalMutex_unlock(); return true; } } } } - objc_global_mutex_unlock(); + objc_globalMutex_unlock(); return false; }