mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-03 21:31:00 +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
d56ff38a2a
commit
b7894ad188
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>
|
2009-12-11 01:44-EST Gregory John Casamento <greg.casamento@gmail.com>
|
||||||
|
|
||||||
* Source/synchronization.m: Corrected header text.
|
* Source/synchronization.m: Corrected header text.
|
||||||
|
|
|
@ -106,11 +106,6 @@ ifeq ($(GNUSTEP_TARGET_OS), mingw32)
|
||||||
GNU_MFILES += libgnustep-base-entry.m
|
GNU_MFILES += libgnustep-base-entry.m
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(HAVE_OBJC_SYNC_ENTER), no)
|
|
||||||
GNU_MFILES += synchronization.m
|
|
||||||
endif
|
|
||||||
|
|
||||||
|
|
||||||
GNU_OTHER_SRCFILES = \
|
GNU_OTHER_SRCFILES = \
|
||||||
win32-entry.m \
|
win32-entry.m \
|
||||||
win32-def.top \
|
win32-def.top \
|
||||||
|
@ -275,6 +270,9 @@ NSZone.m \
|
||||||
externs.m \
|
externs.m \
|
||||||
objc-load.m
|
objc-load.m
|
||||||
|
|
||||||
|
ifeq ($(HAVE_OBJC_SYNC_ENTER), no)
|
||||||
|
GNU_MFILES += synchronization.m
|
||||||
|
endif
|
||||||
|
|
||||||
ifneq ($(GNUSTEP_TARGET_OS), mingw32)
|
ifneq ($(GNUSTEP_TARGET_OS), mingw32)
|
||||||
BASE_MFILES += \
|
BASE_MFILES += \
|
||||||
|
@ -283,7 +281,7 @@ NSMessagePort.m \
|
||||||
NSMessagePortNameServer.m
|
NSMessagePortNameServer.m
|
||||||
|
|
||||||
ifeq ($(GNUSTEP_BASE_HAVE_MDNS), 1)
|
ifeq ($(GNUSTEP_BASE_HAVE_MDNS), 1)
|
||||||
BASE_MFILES += NSNetServices.m
|
BASE_MFILES += NSNetServices.m
|
||||||
endif
|
endif
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -152,8 +152,12 @@ sync_add_node(id obj)
|
||||||
/**
|
/**
|
||||||
* Add a lock for the object.
|
* Add a lock for the object.
|
||||||
*/
|
*/
|
||||||
|
#ifndef __MINGW32__
|
||||||
int
|
int
|
||||||
__attribute__((weak))
|
__attribute__((weak))
|
||||||
|
#else
|
||||||
|
int
|
||||||
|
#endif
|
||||||
objc_sync_enter(id obj)
|
objc_sync_enter(id obj)
|
||||||
{
|
{
|
||||||
lock_node_t *node = NULL;
|
lock_node_t *node = NULL;
|
||||||
|
@ -194,8 +198,12 @@ objc_sync_enter(id obj)
|
||||||
/**
|
/**
|
||||||
* Remove a lock for the object.
|
* Remove a lock for the object.
|
||||||
*/
|
*/
|
||||||
|
#ifndef __MINGW32__
|
||||||
int
|
int
|
||||||
__attribute__((weak))
|
__attribute__((weak))
|
||||||
|
#else
|
||||||
|
int
|
||||||
|
#endif
|
||||||
objc_sync_exit(id obj)
|
objc_sync_exit(id obj)
|
||||||
{
|
{
|
||||||
lock_node_t *node = NULL;
|
lock_node_t *node = NULL;
|
||||||
|
|
Loading…
Reference in a new issue