From 89729b4790d39f6b9e83ae551e9d73cf2ff0b60a Mon Sep 17 00:00:00 2001 From: Mathieu Westphal <mathieu.westphal@kitware.com> Date: Thu, 27 Feb 2025 13:21:21 +0100 Subject: [PATCH] Windows: Add _USE_MATH_DEFINES for M_PI --- src/gaussian_latitudes.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gaussian_latitudes.c b/src/gaussian_latitudes.c index 7196999fc..f62954c31 100644 --- a/src/gaussian_latitudes.c +++ b/src/gaussian_latitudes.c @@ -14,6 +14,9 @@ #include <stdlib.h> #include <stdbool.h> #include <float.h> + +// Required on windows to be able to use M_PI +#define _USE_MATH_DEFINES #include <math.h> #ifndef M_SQRT2 -- GitLab