Skip to content

Commit 29eb083

Browse files
committed
win32: define alloca
1 parent c3bb1b0 commit 29eb083

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

adopt.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@
2727
# define INLINE(type) static inline type
2828
#endif
2929

30+
#ifdef _MSC_VER
31+
# define alloca _alloca
32+
#endif
33+
3034
#define spec_is_option_type(x) \
3135
((x)->type == ADOPT_TYPE_BOOL || \
3236
(x)->type == ADOPT_TYPE_SWITCH || \

0 commit comments

Comments
 (0)