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:
		| @@ -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) {} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Max Kellermann
					Max Kellermann