From be0996f37b76766c5d1d780ad29d965ad3ae4d9d Mon Sep 17 00:00:00 2001 From: Graham Percival Date: Mon, 6 Sep 2010 14:56:56 +0100 Subject: [PATCH] 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. --- flower/real.cc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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 - ; - + -- 2.39.2