Skip to content

Commit d01fa33

Browse files
authored
Merge pull request #8085 from diffblue/emscripten-alloca
The emscripten compiler has alloca.h
2 parents 9061084 + 6a14010 commit d01fa33

File tree

1 file changed

+18
-10
lines changed

1 file changed

+18
-10
lines changed

src/big-int/allocainc.h

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,27 @@
1-
// $Id: allocainc.h,v 1.7 2005-12-25 14:44:24 kroening Exp $
1+
/*******************************************************************\
2+
3+
Module: Big Integers
4+
5+
Author: Daniel Kroening, dkr@amazon.com
6+
7+
\*******************************************************************/
28

39
// Whatever is necessary to use alloca().
410

511
#ifndef CPROVER_BIG_INT_ALLOCAINC_H
612
#define CPROVER_BIG_INT_ALLOCAINC_H
713

8-
9-
#if defined linux || defined __linux__ \
10-
|| defined __sun \
11-
|| defined UWIN \
12-
|| defined osf1 \
13-
|| defined __MACH__ \
14-
|| defined __CYGWIN__
15-
16-
#include <alloca.h>
14+
// clang-format off
15+
#if defined linux || defined __linux__ \
16+
|| defined __sun \
17+
|| defined UWIN \
18+
|| defined osf1 \
19+
|| defined __MACH__ \
20+
|| defined __CYGWIN__ \
21+
|| defined __EMSCRIPTEN__
22+
// clang-format on
23+
24+
# include <alloca.h>
1725

1826
#elif defined _MSC_VER \
1927
|| defined __BORLANDC__ \

0 commit comments

Comments
 (0)