ggwave : fix python build on Windows

This commit is contained in:
Georgi Gerganov
2021-07-03 11:44:56 +03:00
parent 88c7a90626
commit d73b18426b
2 changed files with 8 additions and 0 deletions

View File

@@ -11,6 +11,10 @@
#include <map>
//#include <random>
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
//
// C interface
//

View File

@@ -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));