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
This commit is contained in:
David Chisnall 2009-09-05 18:49:48 +00:00
parent 852e924f52
commit f78dd03c31

View file

@ -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;