diff --git a/examples/common.cpp b/examples/common.cpp index 3da76b7..194ef0e 100644 --- a/examples/common.cpp +++ b/examples/common.cpp @@ -8,6 +8,10 @@ #include #include +#ifndef M_PI +#define M_PI 3.14159265358979323846 +#endif + std::string trim(const std::string & s) { std::regex e("^\\s+|\\s+$"); return std::regex_replace(s, e, "");