]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/real.cc
Only use INFINITY if it is defined.
[lilypond.git] / flower / real.cc
index 297f27853194725d2ff8ea5d290bc19b3cc8336a..f617d20ff6fc1e6cd43cebedec748a5549c53647 100644 (file)
@@ -3,4 +3,11 @@
 #include <cmath>
 using namespace std;
 
-const Real infinity_f = INFINITY;
+const Real infinity_f =
+  #ifdef INFINITY
+  INFINITY
+  #else
+  HUGE_VAL  
+  #endif
+  ;
+