mirror of
https://github.com/ggerganov/ggwave.git
synced 2026-05-10 02:47:39 +08:00
ggwave : fix python build on Windows
This commit is contained in:
@@ -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
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -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));
|
||||||
|
|||||||
Reference in New Issue
Block a user