IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 12438


Ignore:
Timestamp:
Mar 13, 2007, 6:06:34 PM (19 years ago)
Author:
Paul Price
Message:

Ensuring we have INFINITY and NAN. Get these from GSL if we don't.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sys/psType.h

    r12431 r12438  
    1010*  @author Ross Harman, MHPCC
    1111*
    12 *  @version $Revision: 1.57 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2007-03-14 00:39:51 $
     12*  @version $Revision: 1.58 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2007-03-14 04:06:34 $
    1414*
    1515*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    2222/// @{
    2323
    24 #include <stdint.h>
     24#include <inttypes.h> // According to C99, this includes stdint.h
    2525#include <float.h>
    2626#include <stdbool.h>
     27
     28// Make sure we have INFINITY and NAN
     29// Use GSL --- they solved the problem so we don't have to
     30#ifndef INFINITY
     31#include <gsl/gsl_nan.h>
     32#define INFINITY GSL_POSINF
     33#endif
     34#ifndef NAN
     35#include <gsl/gsl_nan.h>
     36#define NAN GSL_NAN
     37#endif
    2738
    2839/******************************************************************************/
Note: See TracChangeset for help on using the changeset viewer.