1
0
forked from pool/libqt5-qtbase
libqt5-qtbase/qtbase-qatomic-ppc.patch
Tomáš Chvátal 901ce1940a Accepting request 203743 from KDE:Qt5
Added qtbase-qatomic-ppc.patch, fixes PowerPC build

Depending how important is to get this package built on PPC, checkin to 13.1 also

OBS-URL: https://build.opensuse.org/request/show/203743
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libqt5-qtbase?expand=0&rev=5
2013-10-18 17:21:28 +00:00

23 lines
946 B
Diff

Index: qtbase-opensource-src-5.1.1/src/corelib/thread/qoldbasicatomic.h
===================================================================
--- qtbase-opensource-src-5.1.1.orig/src/corelib/thread/qoldbasicatomic.h
+++ qtbase-opensource-src-5.1.1/src/corelib/thread/qoldbasicatomic.h
@@ -63,7 +63,7 @@ public:
// Atomic API, implemented in qatomic_XXX.h
int load() const { return _q_value; }
- int loadAcquire() { return _q_value; }
+ int loadAcquire() const { return _q_value; }
void store(int newValue) { _q_value = newValue; }
void storeRelease(int newValue) { _q_value = newValue; }
@@ -107,7 +107,7 @@ public:
// Atomic API, implemented in qatomic_XXX.h
T *load() const { return _q_value; }
- T *loadAcquire() { return _q_value; }
+ T *loadAcquire() const { return _q_value; }
void store(T *newValue) { _q_value = newValue; }
void storeRelease(T *newValue) { _q_value = newValue; }