Skip to content

Commit

Permalink
Fix Windows CI Failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Thirumalai-Shaktivel committed Oct 18, 2022
1 parent 343f71d commit 467aa08
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/lpython/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,14 @@
#include <sys/types.h>
#include <sys/stat.h>
#ifndef _WIN32
#include <unistd.h>
#include <unistd.h>
#endif

#ifdef _WIN32
#define stat _stat
#define stat _stat
#if !defined S_ISDIR
#define S_ISDIR(m) (((m) & _S_IFDIR) == _S_IFDIR)
#endif
#endif

namespace LFortran {
Expand Down

0 comments on commit 467aa08

Please sign in to comment.