File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -26,10 +26,12 @@ typedef pthread_cond_t ConditionHandle;
26
26
typedef pthread_mutex_t MutexHandle;
27
27
typedef pthread_rwlock_t ReadWriteLockHandle;
28
28
29
- #if defined(__CYGWIN__)
29
+ #if defined(__CYGWIN__) || defined(__ANDROID__)
30
30
// At the moment CYGWIN pthreads implementation doesn't support the use of
31
31
// constexpr for static allocation versions. The way they define things
32
- // results in a reinterpret_cast which violates constexpr.
32
+ // results in a reinterpret_cast which violates constexpr. Similarly, Android's
33
+ // pthread implementation makes use of volatile attributes that prevent it from
34
+ // being marked as constexpr.
33
35
#define CONDITION_SUPPORTS_CONSTEXPR 0
34
36
#define MUTEX_SUPPORTS_CONSTEXPR 0
35
37
#define READWRITELOCK_SUPPORTS_CONSTEXPR 0
You can’t perform that action at this time.
0 commit comments