aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--NEWS1
-rw-r--r--src/util/RefCount.hxx7
2 files changed, 7 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 895d00bf5..c4fa9b8b2 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,7 @@ ver 0.18.4 (not yet released)
* decoder
- dsdiff: fix byte order bug
* fix build failures due to missing includes
+* libc++ compatibility
ver 0.18.3 (2013/11/08)
* fix stuck MPD after song change (0.18.2 regression)
diff --git a/src/util/RefCount.hxx b/src/util/RefCount.hxx
index 9a45a585b..dff850036 100644
--- a/src/util/RefCount.hxx
+++ b/src/util/RefCount.hxx
@@ -42,7 +42,12 @@ class RefCount {
std::atomic_uint n;
public:
- constexpr RefCount():n(1) {}
+#ifndef _LIBCPP_VERSION
+ /* the "constexpr" is missing in libc++'s "atomic"
+ implementation */
+ constexpr
+#endif
+ RefCount():n(1) {}
void Increment() {
++n;