From 1a39e727faf9947673df3637f4c1d9d52072349e Mon Sep 17 00:00:00 2001 From: Dmitry Zakharov Date: Sun, 29 Nov 2026 01:10:03 +0300 Subject: [PATCH] Include in private/io.h The reader/writer error helpers call std::format, but the header only includes and . Apple clang pulls in transitively, so this compiles on macOS; gcc (libstdc++) and MSVC fail with "'format' is not a member of 'std'" the moment any source parses io.h (every mlx/c source does, via private/mlx.h). Reported from the mlx-serve v0.8.0 bump, where the Linux/Windows CUDA builds broke on exactly this. --- mlx/c/private/io.h | 1 + 1 file changed, 1 insertion(+) diff --git a/mlx/c/private/io.h b/mlx/c/private/io.h index f17ceb49..ff25da54 100644 --- a/mlx/c/private/io.h +++ b/mlx/c/private/io.h @@ -1,6 +1,7 @@ #ifndef MLX_IO_PRIVATE_H #define MLX_IO_PRIVATE_H +#include #include #include