summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDongkyun Son <dongkyun.s@samsung.com>2020-01-03 19:50:31 +0900
committerDongkyun Son <dongkyun.s@samsung.com>2020-01-03 19:51:09 +0900
commit4600198816924dd14a0444a2c0c2887e5a9650ee (patch)
tree54e9376eb5f67656f650deeef439990b3ee84bba
parentd4bd210c4fbe4369667078ff79f9b59143cfe7d7 (diff)
downloaddb4-accepted/tizen_7.0_base_tool_hotfix.tar.gz
db4-accepted/tizen_7.0_base_tool_hotfix.tar.bz2
db4-accepted/tizen_7.0_base_tool_hotfix.zip
In file included from ../src/dbinc/mutex_int.h:12, from ../src/dbinc/mutex.h:15, from ./db_int.h:1113, from ../lang/cxx/cxx_channel.cpp:11: ../src/dbinc/atomic.h:179:19: error: definition of 'int __atomic_compare_exchange(db_atomic_t*, atomic_value_t, atomic_value_t)' ambiguates built-in declaration 'bool __atomic_compare_exchange(long unsigned int, volatile void*, void*, void*, int, int)' static inline int __atomic_compare_exchange( ^~~~~~~~~~~~~~~~~~~~~~~~~ Change-Id: I733aeb261576b76cdfd83ef54c33e2919ebfc9bf Signed-off-by: Bernd Kuhls <bernd.kuhls at t-online.de>
-rw-r--r--dbinc/atomic.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/dbinc/atomic.h b/dbinc/atomic.h
index 0034dcc5..fa7ba93d 100644
--- a/dbinc/atomic.h
+++ b/dbinc/atomic.h
@@ -144,7 +144,7 @@ typedef LONG volatile *interlocked_val;
#define atomic_inc(env, p) __atomic_inc(p)
#define atomic_dec(env, p) __atomic_dec(p)
#define atomic_compare_exchange(env, p, o, n) \
- __atomic_compare_exchange((p), (o), (n))
+ __db_atomic_compare_exchange((p), (o), (n))
static inline int __atomic_inc(db_atomic_t *p)
{
int temp;
@@ -176,7 +176,7 @@ static inline int __atomic_dec(db_atomic_t *p)
* http://gcc.gnu.org/onlinedocs/gcc-4.1.0/gcc/Atomic-Builtins.html
* which configure could be changed to use.
*/
-static inline int __atomic_compare_exchange(
+static inline int __db_atomic_compare_exchange(
db_atomic_t *p, atomic_value_t oldval, atomic_value_t newval)
{
atomic_value_t was;