]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/ly-module.hh
Configure: Add backward compat fix for Guile 1.8.
[lilypond.git] / lily / include / ly-module.hh
index e9ab0b85373c70f660f4d5037615c05cb2f71d5e..0a7fdc8726c7a305fd099eb6a7f6af9a3b8f3a97 100644 (file)
@@ -19,6 +19,7 @@
 #ifndef LY_MODULE_HH
 #define LY_MODULE_HH
 
+#include "config.hh"
 #include "lily-guile.hh"
 
 SCM ly_make_anonymous_module (bool safe);
@@ -33,8 +34,11 @@ SCM ly_clear_anonymous_modules ();
 void clear_anonymous_modules ();
 SCM ly_use_module (SCM mod, SCM used);
 
-/* Ugh signature of scm_internal_hash_fold () is inaccurate.  */
-typedef SCM (*Hash_closure_function) (GUILE_ELLIPSIS);
+/* For backward compatability with Guile 1.8 */
+#if !HAVE_GUILE_HASH_FUNC
+typedef SCM (*scm_t_hash_fold_fn) (GUILE_ELLIPSIS);
+typedef SCM (*scm_t_hash_handle_fn) (GUILE_ELLIPSIS);
+#endif
 
 #define MODULE_GC_KLUDGE