From: Graham Percival Date: Mon, 6 Sep 2010 13:56:56 +0000 (+0100) Subject: Clarify infinity_f preprocessor definition. X-Git-Tag: release/2.13.33-1~18 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=be0996f37b76766c5d1d780ad29d965ad3ae4d9d;p=lilypond.git Clarify infinity_f preprocessor definition. The old code confuses various style programs, including our own fixcc.py (it produces un-compilable code!). In particular: ----- const Real infinity_f = #ifdef ----- which makes gcc unhapy. The new format is easy for style programs to deal with, still compiles, and is IMO just as clear anyway. --- diff --git a/flower/real.cc b/flower/real.cc index 55537f8fa5..20d8069669 100644 --- a/flower/real.cc +++ b/flower/real.cc @@ -3,11 +3,9 @@ #include using namespace std; -const Real infinity_f = #ifdef INFINITY - INFINITY +const Real infinity_f = INFINITY; #else - HUGE_VAL +const Real infinity_f = HUGE_VAL; #endif - ; - +