From: Han-Wen Nienhuys Date: Wed, 12 Dec 2007 01:30:55 +0000 (-0200) Subject: Only use INFINITY if it is defined. X-Git-Tag: release/2.11.36-1~8 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=9052af39f72639dcd4b05fcc977bfc8a0ffa9092;p=lilypond.git Only use INFINITY if it is defined. Should fix compile on Freebsd. --- diff --git a/flower/real.cc b/flower/real.cc index 297f278531..f617d20ff6 100644 --- a/flower/real.cc +++ b/flower/real.cc @@ -3,4 +3,11 @@ #include using namespace std; -const Real infinity_f = INFINITY; +const Real infinity_f = + #ifdef INFINITY + INFINITY + #else + HUGE_VAL + #endif + ; +