aboutsummaryrefslogtreecommitdiffstats
path: root/src/notify.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-09-17 22:56:35 +0200
committerMax Kellermann <max@duempel.org>2015-09-17 22:56:35 +0200
commit459a812a54509ebfd634a3df2998395c9cb5b98f (patch)
tree80a10c40be0e5f9efd7ae29b39839fb322830da9 /src/notify.hxx
parent7743647460575fd9ea4d5e29e5a23e3faf56c58c (diff)
downloadmpd-459a812a54509ebfd634a3df2998395c9cb5b98f.tar.gz
mpd-459a812a54509ebfd634a3df2998395c9cb5b98f.tar.xz
mpd-459a812a54509ebfd634a3df2998395c9cb5b98f.zip
notify: use "constexpr" only with glibc
The Mutex and Cond constructors are only "constexpr" with glibc, and this is what this #ifdef is about.
Diffstat (limited to 'src/notify.hxx')
-rw-r--r--src/notify.hxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/notify.hxx b/src/notify.hxx
index a077f9d02..b1bc594be 100644
--- a/src/notify.hxx
+++ b/src/notify.hxx
@@ -28,8 +28,7 @@ struct notify {
Cond cond;
bool pending;
-#if !defined(WIN32) && !defined(__NetBSD__) && !defined(__BIONIC__) && \
- !defined(__HAIKU__)
+#ifdef __GLIBC__
constexpr
#endif
notify():pending(false) {}