Skip to content

Commit

Permalink
[#56] fix(build): define M_PI manually if <math.h> does not defin…
Browse files Browse the repository at this point in the history
…e it
  • Loading branch information
lmichaelis committed Aug 20, 2024
1 parent cbd6d5f commit 52d7ba7
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 52d7ba7

Please sign in to comment.