Skip to content

Commit

Permalink
vendor: Update vendored sources to igraph/igraph@5216243
Browse files Browse the repository at this point in the history
refactor: cleaner workaround in plfit for Windows 11 SDK bug where NAN is defined in a non-constant manner
  • Loading branch information
krlmlr committed Jan 8, 2025
1 parent c235c02 commit cecf2ff
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions src/vendor/cigraph/vendor/plfit/hzeta.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,23 +46,23 @@
#define _USE_MATH_DEFINES
#endif

#include <math.h>
#include <stdio.h>
#include "hzeta.h"
#include "plfit_error.h"

/* Work around bug in some Windows SDK / MSVC versions where NAN is not a
* constant expression, triggering an error in the definition of
* hsl_sf_hzeta_eulermaclaurin_series_coeffs[] and
* hsl_sf_hzeta_eulermaclaurin_series_majorantratios[] below.
* We re-define NAN to the value it had in earlier MSVC versions.
* See https://github.com/igraph/igraph/issues/2701
* and https://developercommunity.visualstudio.com/t/NAN-is-no-longer-compile-time-constant-i/10688907
*/
#ifdef _MSC_VER
#undef NAN
#define NAN (-(float)(((float)(1e+300 * 1e+300)) * 0.0F))
#define _UCRT_NOISY_NAN
#endif

#include <math.h>
#include <stdio.h>
#include "hzeta.h"
#include "plfit_error.h"

/* imported from gsl_machine.h */

#define GSL_LOG_DBL_MIN (-7.0839641853226408e+02)
Expand Down
4 changes: 2 additions & 2 deletions src/vendor/igraph_version.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@

__BEGIN_DECLS

#define IGRAPH_VERSION "0.10.15-46-g622f331dc"
#define IGRAPH_VERSION "0.10.15-47-g521624378"
#define IGRAPH_VERSION_MAJOR 0
#define IGRAPH_VERSION_MINOR 10
#define IGRAPH_VERSION_PATCH 15
#define IGRAPH_VERSION_PRERELEASE "46-g622f331dc"
#define IGRAPH_VERSION_PRERELEASE "47-g521624378"

IGRAPH_EXPORT void igraph_version(const char **version_string,
int *major,
Expand Down

0 comments on commit cecf2ff

Please sign in to comment.