Centralize math include

https://github.com/harfbuzz/harfbuzz/pull/3212
This commit is contained in:
Behdad Esfahbod 2021-09-17 08:27:03 -04:00
parent 671f1d149a
commit e0d5fe740a
2 changed files with 3 additions and 3 deletions

View File

@ -26,9 +26,6 @@
#ifndef HB_NO_STYLE
#define _USE_MATH_DEFINES
#include <math.h>
#include "hb-ot-var-avar-table.hh"
#include "hb-ot-var-fvar-table.hh"
#include "hb-ot-stat-table.hh"

View File

@ -182,6 +182,9 @@
#include <cassert>
#include <cfloat>
#include <climits>
#ifdef _MSC_VER
# define _USE_MATH_DEFINES
#endif
#include <cmath>
#include <cstdarg>
#include <cstddef>