|
Packit Service |
def718 |
#ifndef __math_compat_h
|
|
Packit Service |
def718 |
#define __math_compat_h
|
|
Packit Service |
def718 |
|
|
Packit Service |
def718 |
/**
|
|
Packit Service |
def718 |
* @file
|
|
Packit Service |
def718 |
* @brief Do not use, json-c internal, may be changed or removed at any time.
|
|
Packit Service |
def718 |
*/
|
|
Packit Service |
def718 |
|
|
Packit Service |
def718 |
/* Define isnan, isinf, infinity and nan on Windows/MSVC */
|
|
Packit Service |
def718 |
|
|
Packit Service |
def718 |
#ifndef HAVE_DECL_ISNAN
|
|
Packit Service |
def718 |
# ifdef HAVE_DECL__ISNAN
|
|
Packit Service |
def718 |
#include <float.h>
|
|
Packit Service |
def718 |
#define isnan(x) _isnan(x)
|
|
Packit Service |
def718 |
# endif
|
|
Packit Service |
def718 |
#endif
|
|
Packit Service |
def718 |
|
|
Packit Service |
def718 |
#ifndef HAVE_DECL_ISINF
|
|
Packit Service |
def718 |
# ifdef HAVE_DECL__FINITE
|
|
Packit Service |
def718 |
#include <float.h>
|
|
Packit Service |
def718 |
#define isinf(x) (!_finite(x))
|
|
Packit Service |
def718 |
# endif
|
|
Packit Service |
def718 |
#endif
|
|
Packit Service |
def718 |
|
|
Packit Service |
def718 |
#ifndef HAVE_DECL_INFINITY
|
|
Packit Service |
def718 |
#include <float.h>
|
|
Packit Service |
def718 |
#define INFINITY (DBL_MAX + DBL_MAX)
|
|
Packit Service |
def718 |
#define HAVE_DECL_INFINITY
|
|
Packit Service |
def718 |
#endif
|
|
Packit Service |
def718 |
|
|
Packit Service |
def718 |
#ifndef HAVE_DECL_NAN
|
|
Packit Service |
def718 |
#define NAN (INFINITY - INFINITY)
|
|
Packit Service |
def718 |
#define HAVE_DECL_NAN
|
|
Packit Service |
def718 |
#endif
|
|
Packit Service |
def718 |
|
|
Packit Service |
def718 |
#endif
|