IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 26, 2010, 2:40:25 PM (16 years ago)
Author:
eugene
Message:

move definition of NAN from dvo.h to ohana.h (non-C99 only)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libohana/include/ohana.h

    r27479 r27484  
    9494};
    9595
     96# ifndef NAN
     97# ifndef BYTE_SWAP
     98#  define __nan_bytes           { 0x7f, 0xc0, 0, 0 }
     99# else
     100#  define __nan_bytes           { 0, 0, 0xc0, 0x7f }
     101# endif
     102static union { unsigned char __c[4]; float __d; } __nan_union
     103    __attribute_used__ = { __nan_bytes };
     104# define NAN    (__nan_union.__d)
     105# endif
     106
    96107# ifndef M_PI
    97108# define M_PI 3.14159265358979323846264
Note: See TracChangeset for help on using the changeset viewer.