From 281e9aa1e7b6b3bbe8d499b720484fb547ce6ebd Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Sun, 30 Jun 2019 22:30:55 -0700 Subject: [PATCH] Fix macro redefinition error --- audio_vrc7.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/audio_vrc7.c b/audio_vrc7.c index 693e8cb..1f989ed 100644 --- a/audio_vrc7.c +++ b/audio_vrc7.c @@ -122,8 +122,12 @@ static struct { uint8_t reg; } vrc7_apu; +#ifndef M_PI #define M_PI 3.14159265358979323846 +#endif +#ifndef M_2PI #define M_2PI 6.28318530717958647692 +#endif void vrc7AudioInit() {