mirror of
https://github.com/ml-explore/mlx.git
synced 2025-10-20 01:18:12 +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,5 +1,8 @@
|
||||
// Copyright © 2023-2024 Apple Inc.
|
||||
|
||||
// Required for using M_SQRT2 in MSVC.
|
||||
#define _USE_MATH_DEFINES
|
||||
|
||||
#include "doctest/doctest.h"
|
||||
|
||||
#include "mlx/mlx.h"
|
||||
|
Reference in New Issue
Block a user