Skip to content

Commit f3738af

Browse files
committed
The emscripten compiler has alloca.h
Emscripten is a compiler that targets WASM. To enable cross-compilation with emscripten, allocainc.h now uses alloca.h for this compiler.
1 parent 52688d7 commit f3738af

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Diff for: src/big-int/allocainc.h

+5-3
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,17 @@
55
#ifndef CPROVER_BIG_INT_ALLOCAINC_H
66
#define CPROVER_BIG_INT_ALLOCAINC_H
77

8-
8+
// clang-format off
99
#if defined linux || defined __linux__ \
1010
|| defined __sun \
1111
|| defined UWIN \
1212
|| defined osf1 \
1313
|| defined __MACH__ \
14-
|| defined __CYGWIN__
14+
|| defined __CYGWIN__ \
15+
|| defined __EMSCRIPTEN__
16+
// clang-format on
1517

16-
#include <alloca.h>
18+
# include <alloca.h>
1719

1820
#elif defined _MSC_VER \
1921
|| defined __BORLANDC__ \

0 commit comments

Comments
 (0)