Skip to content

Commit

Permalink
Include io.h in MSVC for IO functions (#1661)
Browse files Browse the repository at this point in the history
  • Loading branch information
zcbenz authored Dec 8, 2024
1 parent 96986fb commit 9635cff
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions mlx/io/load.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,16 @@

#pragma once

#include <memory>
#include <sstream>

#include <fcntl.h>
#ifdef _MSC_VER
#include <io.h>
#else
#include <sys/stat.h>
#include <unistd.h>
#include <memory>
#include <sstream>
#endif

#include "mlx/io/threadpool.h"

Expand Down

0 comments on commit 9635cff

Please sign in to comment.