[postgis-devel] [PostGIS] #1396: No definition of INFINITY on Solaris/GCC

PostGIS trac at osgeo.org
Wed Dec 21 08:27:46 PST 2011


#1396: No definition of INFINITY on Solaris/GCC
------------------------------+---------------------------------------------
 Reporter:  martin            |       Owner:  pramsey      
     Type:  defect            |      Status:  new          
 Priority:  medium            |   Milestone:  PostGIS 2.0.0
Component:  postgis           |     Version:  trunk        
 Keywords:  Solaris infinity  |  
------------------------------+---------------------------------------------
 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())

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1396>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-devel mailing list