summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Mladek <pmladek@suse.cz>2011-04-05 20:19:03 +0200
committerPetr Mladek <pmladek@suse.cz>2011-04-05 20:19:03 +0200
commit0faa398df2d8d3befbb0256ff05e7d6789183be0 (patch)
tree440998eaabd6231b9f3e3add13a904f699d25475
parent47bb8a341e59c5e4c90f5cfebeff8d253b727d1f (diff)
parentf170c2376ae6cd3d6308a9224b68347e1a6c141f (diff)
Merge remote-tracking branch 'origin/libreoffice-3-3' into libreoffice-3-4
Conflicts: pyuno/demo/pyunoenv.tcsh sal/osl/unx/interlck.c
-rw-r--r--sal/osl/unx/interlck.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/sal/osl/unx/interlck.c b/sal/osl/unx/interlck.c
index 826592a495a6..e5bb3ea1e431 100644
--- a/sal/osl/unx/interlck.c
+++ b/sal/osl/unx/interlck.c
@@ -160,6 +160,15 @@ oslInterlockedCount SAL_CALL osl_decrementInterlockedCount(oslInterlockedCount*
{
return __sync_sub_and_fetch(pCount, 1);
}
+#elif ( __GNUC__ > 4 ) || (( __GNUC__ == 4) && ( __GNUC_MINOR__ >= 4 ))
+oslInterlockedCount SAL_CALL osl_incrementInterlockedCount(oslInterlockedCount* pCount)
+{
+ return __sync_add_and_fetch(pCount, 1);
+}
+oslInterlockedCount SAL_CALL osl_decrementInterlockedCount(oslInterlockedCount* pCount)
+{
+ return __sync_sub_and_fetch(pCount, 1);
+}
#else
/* use only if nothing else works, expensive due to single mutex for all reference counts */