Skip to content

Commit

Permalink
[#6] fix(build): define M_PI manually if <math.h> does not define it
Browse files Browse the repository at this point in the history
  • Loading branch information
lmichaelis committed Aug 20, 2024
1 parent cbd6d5f commit 1c37f63
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Performance.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
#include <math.h>
#include <stdlib.h>

#ifndef M_PI
#define M_PI 3.14159
#endif

enum {
DmInt_DEFAULT_TEMPO = 100,
DmInt_DEFAULT_SAMPLE_RATE = 44100,
Expand Down

0 comments on commit 1c37f63

Please sign in to comment.