From e0d5fe740a6c23a995d4d881bfa330eb1063059d Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 17 Sep 2021 08:27:03 -0400 Subject: [PATCH] Centralize math include https://github.com/harfbuzz/harfbuzz/pull/3212 --- src/hb-style.cc | 3 --- src/hb.hh | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hb-style.cc b/src/hb-style.cc index 58fde1b16..126fcc058 100644 --- a/src/hb-style.cc +++ b/src/hb-style.cc @@ -26,9 +26,6 @@ #ifndef HB_NO_STYLE -#define _USE_MATH_DEFINES -#include - #include "hb-ot-var-avar-table.hh" #include "hb-ot-var-fvar-table.hh" #include "hb-ot-stat-table.hh" diff --git a/src/hb.hh b/src/hb.hh index 7c72179fc..829b5a1ab 100644 --- a/src/hb.hh +++ b/src/hb.hh @@ -182,6 +182,9 @@ #include #include #include +#ifdef _MSC_VER +# define _USE_MATH_DEFINES +#endif #include #include #include