mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
* Source/GNUmakefile: Add synchronization.m to GNU_MFILES
and correct some formatting. * Source/synchronization.m: Fix @synchronize support on Windows. The __weak__ attribute doesn't work on Windows. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29140 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c7a2108c66
commit
e96f74362f
3 changed files with 19 additions and 6 deletions
|
@ -1,3 +1,10 @@
|
|||
2009-12-19 13:53-EST Gregory John Casamento <greg.casamento@gmail.com>
|
||||
|
||||
* Source/GNUmakefile: Add synchronization.m to GNU_MFILES
|
||||
and correct some formatting.
|
||||
* Source/synchronization.m: Fix @synchronize support on
|
||||
Windows. The __weak__ attribute doesn't work on Windows.
|
||||
|
||||
2009-12-11 01:44-EST Gregory John Casamento <greg.casamento@gmail.com>
|
||||
|
||||
* Source/synchronization.m: Corrected header text.
|
||||
|
|
|
@ -106,11 +106,6 @@ ifeq ($(GNUSTEP_TARGET_OS), mingw32)
|
|||
GNU_MFILES += libgnustep-base-entry.m
|
||||
endif
|
||||
|
||||
ifeq ($(HAVE_OBJC_SYNC_ENTER), no)
|
||||
GNU_MFILES += synchronization.m
|
||||
endif
|
||||
|
||||
|
||||
GNU_OTHER_SRCFILES = \
|
||||
win32-entry.m \
|
||||
win32-def.top \
|
||||
|
@ -275,6 +270,9 @@ NSZone.m \
|
|||
externs.m \
|
||||
objc-load.m
|
||||
|
||||
ifeq ($(HAVE_OBJC_SYNC_ENTER), no)
|
||||
GNU_MFILES += synchronization.m
|
||||
endif
|
||||
|
||||
ifneq ($(GNUSTEP_TARGET_OS), mingw32)
|
||||
BASE_MFILES += \
|
||||
|
@ -283,7 +281,7 @@ NSMessagePort.m \
|
|||
NSMessagePortNameServer.m
|
||||
|
||||
ifeq ($(GNUSTEP_BASE_HAVE_MDNS), 1)
|
||||
BASE_MFILES += NSNetServices.m
|
||||
BASE_MFILES += NSNetServices.m
|
||||
endif
|
||||
|
||||
endif
|
||||
|
|
|
@ -152,8 +152,12 @@ sync_add_node(id obj)
|
|||
/**
|
||||
* Add a lock for the object.
|
||||
*/
|
||||
#ifndef __MINGW32__
|
||||
int
|
||||
__attribute__((weak))
|
||||
#else
|
||||
int
|
||||
#endif
|
||||
objc_sync_enter(id obj)
|
||||
{
|
||||
lock_node_t *node = NULL;
|
||||
|
@ -194,8 +198,12 @@ objc_sync_enter(id obj)
|
|||
/**
|
||||
* Remove a lock for the object.
|
||||
*/
|
||||
#ifndef __MINGW32__
|
||||
int
|
||||
__attribute__((weak))
|
||||
#else
|
||||
int
|
||||
#endif
|
||||
objc_sync_exit(id obj)
|
||||
{
|
||||
lock_node_t *node = NULL;
|
||||
|
|
Loading…
Reference in a new issue