--- cvsroot/CBOR-XS/ecb.h 2013/10/26 10:41:12 1.2 +++ cvsroot/CBOR-XS/ecb.h 2013/10/31 01:24:33 1.3 @@ -589,10 +589,17 @@ #include /* for frexp*, ldexp*, INFINITY, NAN */ - #ifdef NEN + /* only the oldest of old doesn't have this one. solaris. */ + #ifdef INFINITY + #define ECB_INFINITY INFINITY + #else + #define ECB_INFINITY HUGE_VAL + #endif + + #ifdef NAN #define ECB_NAN NAN #else - #define ECB_NAN INFINITY + #define ECB_NAN ECB_INFINITY #endif /* converts an ieee half/binary16 to a float */