Skip to content

Commit

Permalink
ggwave : fix python build on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ggerganov committed Jul 3, 2021
1 parent 88c7a90 commit d73b184
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ggwave.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
#include <map>
//#include <random>

#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif

//
// C interface
//
Expand Down
4 changes: 4 additions & 0 deletions src/resampler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
#include <cmath>
#include <cstdio>

#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif

namespace {
double linear_interp(double first_number, double second_number, double fraction) {
return (first_number + ((second_number - first_number)*fraction));
Expand Down

0 comments on commit d73b184

Please sign in to comment.