]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/general-scheme.cc
Merge remote-tracking branch 'origin/master' into translation
[lilypond.git] / lily / general-scheme.cc
index 19d0af73caf6a338f7169991d36b32a6bae452be..95d4081f3938863d160fa5d07d61aca5d3488ee3 100644 (file)
@@ -271,7 +271,12 @@ LY_DEFINE (ly_protects, "ly:protects",
            0, 0, 0, (),
            "Return hash of protected objects.")
 {
+  //scm_protects is available only in Guile versions before 2.1.
+#if SCM_MAJOR_VERSION < 2 || SCM_MAJOR_VERSION == 2 && SCM_MINOR_VERSION < 1
   return scm_protects;
+#else
+  return programming_error ("ly:protects is not supported in Guile 2.1");
+#endif
 }
 
 LY_DEFINE (ly_gettext, "ly:gettext",