diff options
author | Petr Mladek <pmladek@suse.cz> | 2011-04-05 20:19:03 +0200 |
---|---|---|
committer | Petr Mladek <pmladek@suse.cz> | 2011-04-05 20:19:03 +0200 |
commit | 23f7b49c802fcef717e83c00bc367eb2d735dcda (patch) | |
tree | 2d84e74a6d4802d9f2a50d2bff606efe9cb21c2f /sal | |
parent | 77d24c6a195fc82b1ffb8bfd6afd47a27eccf021 (diff) | |
parent | 1818bf1dbc330974c749ca17b4d7b79796587fae (diff) |
Merge remote-tracking branch 'origin/libreoffice-3-3' into libreoffice-3-4
Conflicts:
pyuno/demo/pyunoenv.tcsh
sal/osl/unx/interlck.c
Diffstat (limited to 'sal')
-rw-r--r-- | sal/osl/unx/interlck.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sal/osl/unx/interlck.c b/sal/osl/unx/interlck.c index 826592a49..e5bb3ea1e 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 */ |