Commit 53677172 authored by Max Kellermann's avatar Max Kellermann

notify: use "constexpr" only with glibc

The Mutex and Cond constructors are only "constexpr" with glibc, and this is what this #ifdef is about. Backport of commit 459a812a See http://bugs.musicpd.org/view.php?id=4511
parent bef0ccf4
ver 0.19.15 (not yet released) ver 0.19.15 (not yet released)
* fix more build failures on non-glibc builds due to constexpr Mutex
ver 0.19.14 (2016/03/18) ver 0.19.14 (2016/03/18)
* decoder * decoder
......
...@@ -28,7 +28,7 @@ struct notify { ...@@ -28,7 +28,7 @@ struct notify {
Cond cond; Cond cond;
bool pending; bool pending;
#if !defined(WIN32) && !defined(__NetBSD__) && !defined(__BIONIC__) #ifdef __GLIBC__
constexpr constexpr
#endif #endif
notify():pending(false) {} notify():pending(false) {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment