From f78dd03c31845dea7192e126cab039bc593becb4 Mon Sep 17 00:00:00 2001 From: David Chisnall Date: Sat, 5 Sep 2009 18:49:48 +0000 Subject: [PATCH] Added weak attribute to the synchronization functions so that they won't replace equivalent functions provided by the runtime, if available. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28611 72102866-910b-0410-8b05-ffd578937521 --- Source/synchronization.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/synchronization.m b/Source/synchronization.m index 697a975ea..cce854370 100644 --- a/Source/synchronization.m +++ b/Source/synchronization.m @@ -161,6 +161,7 @@ sync_add_node(id obj) * Add a lock for the object. */ int +__attribute__((weak)) objc_sync_enter(id obj) { lock_node_t *node = NULL; @@ -202,6 +203,7 @@ objc_sync_enter(id obj) * Remove a lock for the object. */ int +__attribute__((weak)) objc_sync_exit(id obj) { lock_node_t *node = NULL;