From c272403fe0cfa9df1e686b353af814992e18a4cf Mon Sep 17 00:00:00 2001 From: dbalatoni13 <40299962+dbalatoni13@users.noreply.github.com> Date: Fri, 4 Apr 2025 17:42:15 +0200 Subject: [PATCH] Move M_PI to ext_math.h --- include/ext_math.h | 4 +++- libc/math.h | 2 -- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/ext_math.h b/include/ext_math.h index e979909d..6ac8e0e6 100644 --- a/include/ext_math.h +++ b/include/ext_math.h @@ -4,6 +4,8 @@ #include "math.h" #include "dolphin/mtx.h" +#define M_PI 3.141592653589793 + typedef struct vec2f { float x; float y; @@ -33,7 +35,7 @@ typedef struct vec2f { #define atan2d(y, x) (180.0*(atan2((y), (x)) / M_PI)) #ifndef __MWERKS__ -void HuSetVecF(Vec* arg0, f32 arg8, f32 arg9, f32 argA) +void HuSetVecF(Vec *arg0, f32 arg8, f32 arg9, f32 argA); #endif #endif diff --git a/libc/math.h b/libc/math.h index 5ac49892..5722be26 100644 --- a/libc/math.h +++ b/libc/math.h @@ -1,8 +1,6 @@ #ifndef _MATH_H #define _MATH_H -#define M_PI 3.141592653589793 - #ifndef _MATH_INLINE #define _MATH_INLINE static inline #endif