From e0ed157c0039dd99bad92840be46454c0da37383 Mon Sep 17 00:00:00 2001 From: Peter Lawrence Date: Thu, 3 Aug 2023 10:45:40 -0500 Subject: [PATCH] add M_PI to defines.h --- src/defines.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/defines.h b/src/defines.h index 2c634398..a2fd9ec9 100644 --- a/src/defines.h +++ b/src/defines.h @@ -42,6 +42,9 @@ #ifndef PI #define PI 3.141592654 /* mathematical constant */ #endif +#ifndef M_PI +#define M_PI 3.14159265358979323846f +#endif #define TWO_PI 6.283185307 /* mathematical constant */ #define MAX_STR 2048 /* maximum string size */