From 0b3c636d43f0d6211c8e8dfef4c909b1bed3ce30 Mon Sep 17 00:00:00 2001 From: Christian Sigg Date: Mon, 8 Jul 2019 11:48:20 -0700 Subject: [PATCH] Make M_PI available on MSVC. PiperOrigin-RevId: 257024979 --- tensorflow/lite/experimental/microfrontend/lib/window_util.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tensorflow/lite/experimental/microfrontend/lib/window_util.c b/tensorflow/lite/experimental/microfrontend/lib/window_util.c index b142532bd30..8424ee6f8c0 100644 --- a/tensorflow/lite/experimental/microfrontend/lib/window_util.c +++ b/tensorflow/lite/experimental/microfrontend/lib/window_util.c @@ -14,6 +14,8 @@ limitations under the License. ==============================================================================*/ #include "tensorflow/lite/experimental/microfrontend/lib/window_util.h" +// This macro is required to make MSVC defines math constants in math.h +#define _USE_MATH_DEFINES #include #include #include