From af35d3b9d46a6bf60331218e9cd75c9d48d57e12 Mon Sep 17 00:00:00 2001 From: Nick Kreeger Date: Thu, 10 Oct 2019 16:58:12 -0700 Subject: [PATCH] Add M_PI #define for platforms that do not have that defined. PiperOrigin-RevId: 274069217 --- tensorflow/lite/experimental/microfrontend/lib/window_util.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tensorflow/lite/experimental/microfrontend/lib/window_util.c b/tensorflow/lite/experimental/microfrontend/lib/window_util.c index 8424ee6f8c0..3e544f5dd38 100644 --- a/tensorflow/lite/experimental/microfrontend/lib/window_util.c +++ b/tensorflow/lite/experimental/microfrontend/lib/window_util.c @@ -21,6 +21,11 @@ limitations under the License. #include #include +// Some platforms don't have M_PI +#ifndef M_PI +#define M_PI 3.14159265358979323846 +#endif + void WindowFillConfigWithDefaults(struct WindowConfig* config) { config->size_ms = 25; config->step_size_ms = 10;