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
This commit is contained in:
Max Kellermann
2015-09-17 22:56:35 +02:00
parent bef0ccf42a
commit 53677172f2
2 changed files with 2 additions and 1 deletions

View File

@@ -28,7 +28,7 @@ struct notify {
Cond cond;
bool pending;
#if !defined(WIN32) && !defined(__NetBSD__) && !defined(__BIONIC__)
#ifdef __GLIBC__
constexpr
#endif
notify():pending(false) {}