internal.h: fix ifdef for mp_get_rwlock_{read,write}_wait

rwlocks are emulated using standard locks if no OS primitive for them
exists, therefore we need the declarations in any case.
This commit is contained in:
Marius Gerbershagen 2021-01-24 18:00:17 +01:00
parent 4b6ee0536b
commit da807da49a

View file

@ -490,7 +490,7 @@ extern cl_object ecl_waiter_pop(cl_env_ptr the_env, cl_object q);
/* threads/rwlock.d */ /* threads/rwlock.d */
#ifdef ECL_RWLOCK #ifdef ECL_THREADS
extern cl_object mp_get_rwlock_read_wait(cl_object lock); extern cl_object mp_get_rwlock_read_wait(cl_object lock);
extern cl_object mp_get_rwlock_write_wait(cl_object lock); extern cl_object mp_get_rwlock_write_wait(cl_object lock);
#endif #endif