From e527fa269396ef48766aa60f9863068595e6daf7 Mon Sep 17 00:00:00 2001 From: apwebber <39490780+apwebber@users.noreply.github.com> Date: Fri, 4 Oct 2024 12:55:46 +0100 Subject: [PATCH] Update quadkey.c fix for M_PI on windows --- quadkey.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/quadkey.c b/quadkey.c index f315b75..f11f7ef 100644 --- a/quadkey.c +++ b/quadkey.c @@ -31,6 +31,10 @@ typedef unsigned int uint32; #endif #endif +#ifndef M_PI + #define M_PI 3.14159265358979323846 +#endif + static inline uint64 xy2quadint(uint64 x, uint64 y)