Skip to content

Commit 5399a7f

Browse files
committed
FIX: Define M_PI if not present
1 parent 08248d5 commit 5399a7f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/arch.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@
4848

4949
#define RENAMENOISE_SIG_SCALE 32768.f
5050

51+
#ifndef M_PI
52+
#define M_PI (3.14159265358979323846)
53+
#endif
54+
5155
#define renamenoise_fatal(str) _renamenoise_fatal(str, __FILE__, __LINE__);
5256
#ifdef ENABLE_ASSERTIONS
5357
#include <stdio.h>

0 commit comments

Comments
 (0)