Skip to content

Commit

Permalink
Fix undefined isinf function in lua-cjson for solaris.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralph Irving committed May 8, 2018
1 parent bf7e731 commit 2ab976c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib-src/lua-cjson-2.1.0/lua_cjson.c
Expand Up @@ -61,6 +61,11 @@
/* Workaround for Solaris platforms missing isinf() */
#elif !defined(isinf) && (defined(USE_INTERNAL_ISINF) || defined(MISSING_ISINF))
#define isinf(x) (!_isnan(x) && _isnan((x) - (x)))
#elif defined (__SVR4) && defined (__sun)
#ifndef isinf
#include <ieeefp.h>
#define isinf(x) (!finite((x)) && (x)==(x))
#endif
#endif

#define DEFAULT_SPARSE_CONVERT 0
Expand Down

0 comments on commit 2ab976c

Please sign in to comment.