Skip to content

Commit 7ec6c7e

Browse files
committed
portability.h: deal with popen/pclose on win32
1 parent c1ced01 commit 7ec6c7e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/common/portability.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ static_assert(__STDC_VERSION__ >= 201112L, "C11 support is required to build sha
1515
#define SHADY_UNUSED
1616
#define LARRAY(T, name, size) T* name = alloca(sizeof(T) * (size))
1717
#define alloca _alloca
18+
#define popen _popen
19+
#define pclose _pclose
1820
#define SHADY_FALLTHROUGH
1921
// It's mid 2022, and this typedef is missing from <stdalign.h>
2022
// MSVC is not a real C11 compiler.

0 commit comments

Comments
 (0)