aboutsummaryrefslogtreecommitdiff
path: root/libobjc/objc/objc-sync.h
diff options
context:
space:
mode:
authorNicola Pero <nicola.pero@meta-innovation.com>2010-12-19 01:01:48 +0000
committerNicola Pero <nicola@gcc.gnu.org>2010-12-19 01:01:48 +0000
commit805a07f15ebd51826f22cc41c6e98f1bc72e8774 (patch)
tree99378b6f7b3cf5c7b026c0e64fa65ed3222be316 /libobjc/objc/objc-sync.h
parentc06a8664093c40aad4e27e5329cce5bb37156109 (diff)
downloadgcc-805a07f15ebd51826f22cc41c6e98f1bc72e8774.zip
gcc-805a07f15ebd51826f22cc41c6e98f1bc72e8774.tar.gz
gcc-805a07f15ebd51826f22cc41c6e98f1bc72e8774.tar.bz2
In libobjc/: 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com>
In libobjc/: 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com> * objc/objc-exception.h: Include objc-decls.h. Mark all functions with objc_EXPORT. * objc/objc-sync.h: Same change. From-SVN: r168041
Diffstat (limited to 'libobjc/objc/objc-sync.h')
-rw-r--r--libobjc/objc/objc-sync.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/libobjc/objc/objc-sync.h b/libobjc/objc/objc-sync.h
index fc8e930..04d1db6 100644
--- a/libobjc/objc/objc-sync.h
+++ b/libobjc/objc/objc-sync.h
@@ -27,6 +27,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#define __objc_sync_INCLUDE_GNU
#include "objc.h"
+#include "objc-decls.h"
#ifdef __cplusplus
extern "C" {
@@ -41,17 +42,15 @@ extern "C" {
values.
Note that you should not rely on the behaviour when 'object' is nil
- because it could change.
- */
-int objc_sync_enter (id object);
+ because it could change. */
+objc_EXPORT int objc_sync_enter (id object);
/* 'objc_sync_exit' is automatically called when exiting from a
@synchronized() block. It unlocks the recursive lock associated
with 'object'. If 'object' is nil, it does nothing. It returns
OBJC_SYNC_SUCCESS on success; see the enumeration below for error
- values.
- */
-int objc_sync_exit (id object);
+ values. */
+objc_EXPORT int objc_sync_exit (id object);
/* All the possible return values for objc_sync_enter() and
objc_sync_exit().