notify: use "constexpr" only with glibc
The Mutex and Cond constructors are only "constexpr" with glibc, and this is what this #ifdef is about.
This commit is contained in:
parent
7743647460
commit
459a812a54
@ -28,8 +28,7 @@ struct notify {
|
|||||||
Cond cond;
|
Cond cond;
|
||||||
bool pending;
|
bool pending;
|
||||||
|
|
||||||
#if !defined(WIN32) && !defined(__NetBSD__) && !defined(__BIONIC__) && \
|
#ifdef __GLIBC__
|
||||||
!defined(__HAIKU__)
|
|
||||||
constexpr
|
constexpr
|
||||||
#endif
|
#endif
|
||||||
notify():pending(false) {}
|
notify():pending(false) {}
|
||||||
|
Loading…
Reference in New Issue
Block a user