mirror of
https://github.com/ml-explore/mlx.git
synced 2025-09-01 12:49:44 +08:00
Using math defines requires switch in MSVC (#1665)
* Using math defines requires switch in MSVC * Fix more math macros * Fix type * Remove _MSC_VER guard for math defines
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
// Copyright © 2023-2024 Apple Inc.
|
||||
|
||||
// Required for using M_PI_2 in MSVC.
|
||||
#define _USE_MATH_DEFINES
|
||||
|
||||
#include <cmath>
|
||||
#include <numeric>
|
||||
|
||||
|
Reference in New Issue
Block a user