From: <and...@us...> - 2009-02-23 16:00:36
|
Revision: 9587 http://plplot.svn.sourceforge.net/plplot/?rev=9587&view=rev Author: andrewross Date: 2009-02-23 16:00:30 +0000 (Mon, 23 Feb 2009) Log Message: ----------- Use HUGE_VAL instead of INFINITY as this seems to be more widely supported without having to resort to our own macros. Modified Paths: -------------- trunk/include/plplot.h trunk/src/pdfutils.c Modified: trunk/include/plplot.h =================================================================== --- trunk/include/plplot.h 2009-02-23 15:54:44 UTC (rev 9586) +++ trunk/include/plplot.h 2009-02-23 16:00:30 UTC (rev 9587) @@ -199,10 +199,10 @@ # endif #endif -/* Check if C99 INFINITY macro is available - if not then +/* Check if C99 HUGE_VAL macro is available - if not then * define a replacement */ -#ifndef INFINITY -#define INFINITY (1.0/0.0) +#ifndef HUGE_VAL +#define HUGE_VAL (1.0/0.0) #endif Modified: trunk/src/pdfutils.c =================================================================== --- trunk/src/pdfutils.c 2009-02-23 15:54:44 UTC (rev 9586) +++ trunk/src/pdfutils.c 2009-02-23 16:00:30 UTC (rev 9587) @@ -918,8 +918,8 @@ PLFLT m, M; if (isnan(f[0][0]) || isinf(f[0][0])) { - M = -INFINITY; - m = INFINITY; + M = -HUGE_VAL; + m = HUGE_VAL; } else M = m = f[0][0]; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |