blob: 3486f1edc2ee5b50ff3961b4b5c0d64836d790da [file] [log] [blame]
// define constants like M_PI and C keywords for MSVC
#ifdef _MSC_VER
#ifndef _USE_MATH_DEFINES
#define _USE_MATH_DEFINES
#endif
#endif
#include <c10/util/MathConstants.h>
// NOLINTNEXTLINE(modernize-deprecated-headers)
#include <math.h>
static_assert(M_PI == c10::pi<double>, "c10::pi<double> must be equal to M_PI");