Symbian build fix: use glib for atomics.

This commit is contained in:
Sacha committed 2013-02-15 03:07:32 +10:00
1 parent 743014a293
commit 4feefda8d0
2 files changed
+5

No files matched your search

+4
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
+1
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
}