mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 09:13:39 +01:00
Symbian build fix: use glib for atomics.
This commit is contained in:
1 parent
743014a293
commit
4feefda8d0
2 files changed
+5
No files matched your search
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user