diff --git a/Source/GNUmakefile b/Source/GNUmakefile index 6ede738aa..1ada0b855 100644 --- a/Source/GNUmakefile +++ b/Source/GNUmakefile @@ -280,9 +280,14 @@ NSZone.m \ externs.m \ objc-load.m -ifeq ($(HAVE_OBJC_SYNC_ENTER), no) - GNU_MFILES += synchronization.m -endif +# Not sure that the following is ever needed ... +# we should have synchronisation support from the ObjC2 runtime or +# we should have synchronisation support from the ObjC2 compatibility code or +# we are without native exception and @synchronize support anyway. +# +#ifeq ($(HAVE_OBJC_SYNC_ENTER), no) +# GNU_MFILES += synchronization.m +#endif ifneq ($(GNUSTEP_TARGET_OS), mingw32) BASE_MFILES += \ diff --git a/Source/ObjectiveC2/sync.m b/Source/ObjectiveC2/sync.m index f60f2953c..3d5ed11a6 100644 --- a/Source/ObjectiveC2/sync.m +++ b/Source/ObjectiveC2/sync.m @@ -10,7 +10,7 @@ #include @interface Fake -+ (void)dealloc; ++ (void) dealloc; @end static pthread_mutex_t at_sync_init_lock = PTHREAD_MUTEX_INITIALIZER; @@ -34,7 +34,7 @@ findLockClass(id obj) object.isa = class_getSuperclass(object.isa); } while (Nil != object.isa && objc_msg_lookup((id)&object, dealloc) != (IMP)deallocLockClass); - } + } if (Nil == object.isa) { return Nil;