Opened 12 years ago

Closed 12 years ago

#1396 closed defect (fixed)

No definition of INFINITY on Solaris/GCC

Reported by: martin Owned by: pramsey
Priority: medium Milestone: PostGIS 2.0.0
Component: postgis Version: master
Keywords: Solaris infinity Cc:

Description

gserialized_gist_2d.c: In function `box2df_distance': gserialized_gist_2d.c:468: error: `INFINITY' undeclared (first use in this function)

A rather crude but seemingly functional workaround would be to add a line to postgis_config.h ;-)

#define INFINITY (builtin_inff())

Change History (1)

comment:1 by strk, 12 years ago

Resolution: fixed
Status: newclosed

That file is the only one using INFINITY. In r8499 I changed it to use MAXFLOAT instead.

Paul: no regression test failed and the functions did look like only needing a value ensured to be higher than the others. If you see a problem with this feel free to reopen.

Note: See TracTickets for help on using tickets.