Include io.h in MSVC for IO functions (#1661)

This commit is contained in:
Cheng
2024-12-08 11:26:06 +09:00
committed by GitHub
parent 96986fb362
commit 9635cffdc8

View File

@@ -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 {