From: Marius Vollmer Date: Sat, 16 Jun 2001 20:17:19 +0000 (+0000) Subject: (scm_cond_t, scm_key_t, scm_mutex_t): Only define these when using X-Git-Url: https://git.hcoop.net/bpt/guile.git/commitdiff_plain/485ffecad5225b21727dc5965274b7f3fb1827ee?hp=daabbf15d70430e8c042be71d8757f8f813cfa7d (scm_cond_t, scm_key_t, scm_mutex_t): Only define these when using threads. --- diff --git a/libguile.h b/libguile.h index f006528fe..c5fc73387 100644 --- a/libguile.h +++ b/libguile.h @@ -151,7 +151,6 @@ typedef scm_t_c_hook scm_c_hook_t; typedef scm_t_catch_body scm_catch_body_t; typedef scm_t_catch_handler scm_catch_handler_t; typedef scm_t_complex scm_complex_t; -typedef scm_t_cond scm_cond_t; typedef scm_t_contregs scm_contregs_t; typedef scm_t_debug_frame scm_debug_frame_t; typedef scm_t_debug_info scm_debug_info_t; @@ -161,9 +160,7 @@ typedef scm_t_guard scm_guard_t; typedef scm_t_i_rstate scm_i_rstate_t; typedef scm_t_info_frame scm_info_frame_t; typedef scm_t_inner scm_inner_t; -typedef scm_t_key scm_key_t; typedef scm_t_method scm_method_t; -typedef scm_t_mutex scm_mutex_t; typedef scm_t_option scm_option_t; typedef scm_t_port_rw_active scm_port_rw_active_t; typedef scm_t_port scm_port_t; @@ -177,6 +174,14 @@ typedef scm_t_stack scm_stack_t; typedef scm_t_struct_free scm_struct_free_t; typedef scm_t_subr_entry scm_subr_entry_t; +#ifdef USE_THREADS + +typedef scm_t_cond scm_cond_t; +typedef scm_t_key scm_key_t; +typedef scm_t_mutex scm_mutex_t; + +#endif + #endif /* !SCM_DEBUG_DEPRECATED */ #ifdef __cplusplus