Skip to content

Commit 467aa08

Browse files
Fix Windows CI Failure
1 parent 343f71d commit 467aa08

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/lpython/utils.h

+5-2
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,14 @@
77
#include <sys/types.h>
88
#include <sys/stat.h>
99
#ifndef _WIN32
10-
#include <unistd.h>
10+
#include <unistd.h>
1111
#endif
1212

1313
#ifdef _WIN32
14-
#define stat _stat
14+
#define stat _stat
15+
#if !defined S_ISDIR
16+
#define S_ISDIR(m) (((m) & _S_IFDIR) == _S_IFDIR)
17+
#endif
1518
#endif
1619

1720
namespace LFortran {

0 commit comments

Comments
 (0)