common : fix MSVC M_PI ..

pull/482/head
Georgi Gerganov 2 years ago
parent 831594127e
commit 142891f21c
No known key found for this signature in database
GPG Key ID: 449E073F9DC10735

@ -8,6 +8,10 @@
#include <cmath>
#include <regex>
#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, "");

Loading…
Cancel
Save