Symbian build fix: use glib for atomics.

This commit is contained in:
Sacha 2013-02-15 02:30:10 +10:00
parent 743014a293
commit 4feefda8d0
2 changed files with 5 additions and 0 deletions

View File

@ -20,6 +20,8 @@
#ifdef BLACKBERRY
#include <atomic.h>
#elif defined(__SYMBIAN32__)
#include <glib/gatomic.h>
#endif
#include "Common.h"
@ -79,6 +81,8 @@ inline void AtomicStore(volatile u32& dest, u32 value) {
inline void AtomicStoreRelease(volatile u32& dest, u32 value) {
#ifdef BLACKBERRY
atomic_set(&dest, value);
#elif defined(__SYMBIAN32__)
g_atomic_int_set(&dest, value);
#else
__sync_lock_test_and_set(&dest, value); // TODO: Wrong! This function is has acquire semantics.
#endif

View File

@ -42,6 +42,7 @@ symbian: {
MMP_RULES -= "ARMFPU softvfp+vfpv2"
MMP_RULES += "ARMFPU vfpv2"
QMAKE_CXXFLAGS += -marm -Wno-parentheses -Wno-comment
INCLUDEPATH += $$EPOCROOT/epoc32/include/stdapis/glib-2.0
DEFINES += __MARM_ARMV6__
CONFIG += 4.6.3
}