From 4d5aec6e8dc039cfb9fef8a96d625de4c98691da Mon Sep 17 00:00:00 2001 From: David Tardon Date: Wed, 22 Jun 2011 13:03:24 +0200 Subject: remove duplicate code --- sal/osl/unx/interlck.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'sal/osl/unx/interlck.c') diff --git a/sal/osl/unx/interlck.c b/sal/osl/unx/interlck.c index e5bb3ea1e431..a32f67c11985 100644 --- a/sal/osl/unx/interlck.c +++ b/sal/osl/unx/interlck.c @@ -149,17 +149,6 @@ oslInterlockedCount SAL_CALL osl_decrementInterlockedCount(oslInterlockedCount* return --nCount; #endif } - -#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); -} #elif ( __GNUC__ > 4 ) || (( __GNUC__ == 4) && ( __GNUC_MINOR__ >= 4 )) oslInterlockedCount SAL_CALL osl_incrementInterlockedCount(oslInterlockedCount* pCount) { -- cgit