mirror of
https://github.com/ml-explore/mlx.git
synced 2025-07-16 22:11:15 +08:00
Include io.h in MSVC for IO functions (#1661)
This commit is contained in:
parent
96986fb362
commit
9635cffdc8
@ -2,12 +2,17 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <fcntl.h>
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
#include <memory>
|
||||
#include <sstream>
|
||||
|
||||
#include <fcntl.h>
|
||||
#ifdef _MSC_VER
|
||||
#include <io.h>
|
||||
#else
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include "mlx/io/threadpool.h"
|
||||
|
||||
namespace mlx::core {
|
||||
|
Loading…
Reference in New Issue
Block a user