From bb46e2515fde3e97388c12ae60da4ffbc176340f Mon Sep 17 00:00:00 2001 From: Edgaru089 Date: Tue, 16 Apr 2024 10:24:44 +0800 Subject: [PATCH] Define M_PI if not exist --- player.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/player.c b/player.c index 55374ad..63b6d50 100644 --- a/player.c +++ b/player.c @@ -12,6 +12,11 @@ #include +#ifndef M_PI +#define M_PI 3.14159265358979323846 +#endif + + static inline double dabs(double x) { return x < 0.0 ? -x : x; }