Skip to content

Commit 0e99951

Browse files
Define WEXITSTATUS macro for windows
1 parent a29c095 commit 0e99951

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lpython/utils.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
#if !defined S_ISDIR
2525
#define S_ISDIR(m) (((m) & _S_IFDIR) == _S_IFDIR)
2626
#endif
27+
28+
// For exit error code
29+
#define WEXITSTATUS(status) (((status) >> 8) & 0x000000ff)
2730
#endif
2831

2932
namespace LFortran {

0 commit comments

Comments
 (0)