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 <map>
//#include <random> //#include <random>
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
// //
// C interface // C interface
// //

View File

@@ -4,6 +4,10 @@
#include <cmath> #include <cmath>
#include <cstdio> #include <cstdio>
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
namespace { namespace {
double linear_interp(double first_number, double second_number, double fraction) { double linear_interp(double first_number, double second_number, double fraction) {
return (first_number + ((second_number - first_number)*fraction)); return (first_number + ((second_number - first_number)*fraction));