We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f60e8d8 commit 1217064Copy full SHA for 1217064
src/hzeta.c
@@ -51,6 +51,18 @@
51
#include "hzeta.h"
52
#include "plfit_error.h"
53
54
+/* Work around bug in some Windows SDK / MSVC versions where NAN is not a
55
+ * constant expression, triggering an error in the definition of
56
+ * hsl_sf_hzeta_eulermaclaurin_series_coeffs[] and
57
+ * hsl_sf_hzeta_eulermaclaurin_series_majorantratios[] below.
58
+ * We re-define NAN to the value it had in earlier MSVC versions.
59
+ * See https://github.com/igraph/igraph/issues/2701
60
+ */
61
+#ifdef _MSC_VER
62
+#undef NAN
63
+#define NAN (-(float)(((float)(1e+300 * 1e+300)) * 0.0F))
64
+#endif
65
+
66
/* imported from gsl_machine.h */
67
68
#define GSL_LOG_DBL_MIN (-7.0839641853226408e+02)
0 commit comments