Opened 13 years ago

Last modified 7 years ago

#442 closed defect

isfinite not in scope using cmath on os x — at Version 1

Reported by: jklowden Owned by: geos-devel@…
Priority: major Milestone:
Component: Default Version: main
Severity: Unassigned Keywords:
Cc:

Description (last modified by mloskot)

The following patch allows compilation on a modern mac.

 Index: src/algorithm/RobustDeterminant.cpp
 ===================================================================
 --- src/algorithm/RobustDeterminant.cpp (revision 3364)
 +++ src/algorithm/RobustDeterminant.cpp (working copy)
 @@ -23,6 +23,7 @@
  #include <geos/util/IllegalArgumentException.h>

  #include <cmath>
 +using std::isfinite;

  #include <geos/platform.h> // for ISNAN, FINITE

I know this line was removed a mere 28 hours ago. I'm not sure how platform.h might be changed instead; it's very messy.

Change History (1)

comment:1 by mloskot, 13 years ago

Description: modified (diff)
Version: 3.0.3svn-trunk
Note: See TracTickets for help on using tickets.