File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 46
46
#define _USE_MATH_DEFINES
47
47
#endif
48
48
49
- #include <math.h>
50
- #include <stdio.h>
51
- #include "hzeta.h"
52
- #include "plfit_error.h"
53
-
54
49
/* Work around bug in some Windows SDK / MSVC versions where NAN is not a
55
50
* constant expression, triggering an error in the definition of
56
51
* hsl_sf_hzeta_eulermaclaurin_series_coeffs[] and
57
52
* hsl_sf_hzeta_eulermaclaurin_series_majorantratios[] below.
58
53
* We re-define NAN to the value it had in earlier MSVC versions.
59
54
* See https://github.com/igraph/igraph/issues/2701
55
+ * and https://developercommunity.visualstudio.com/t/NAN-is-no-longer-compile-time-constant-i/10688907
60
56
*/
61
57
#ifdef _MSC_VER
62
- #undef NAN
63
- #define NAN (-(float)(((float)(1e+300 * 1e+300)) * 0.0F))
58
+ #define _UCRT_NOISY_NAN
64
59
#endif
65
60
61
+ #include <math.h>
62
+ #include <stdio.h>
63
+ #include "hzeta.h"
64
+ #include "plfit_error.h"
65
+
66
66
/* imported from gsl_machine.h */
67
67
68
68
#define GSL_LOG_DBL_MIN (-7.0839641853226408e+02)
You can’t perform that action at this time.
0 commit comments