]> git.donarmstrong.com Git - lilypond.git/commitdiff
Only use INFINITY if it is defined.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Wed, 12 Dec 2007 01:30:55 +0000 (23:30 -0200)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Wed, 12 Dec 2007 01:30:55 +0000 (23:30 -0200)
Should fix compile on Freebsd.

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
+  ;
+