llvm.org GIT mirror llvm / 566902b
Remove include/llvm/Config/alloca.h, it is dead. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79878 91177308-0d34-0410-b5e6-96231b3b80d8 Daniel Dunbar 11 years ago
1 changed file(s) with 0 addition(s) and 49 deletion(s). Raw diff Collapse all Expand all
+0
-49
include/llvm/Config/alloca.h less more
None /*
1 * The LLVM Compiler Infrastructure
2 *
3 * This file is distributed under the University of Illinois Open Source
4 * License. See LICENSE.TXT for details.
5 *
6 ******************************************************************************
7 *
8 * Description:
9 * This header file includes the infamous alloc.h header file if the
10 * autoconf system has found it. It hides all of the autoconf details
11 * from the rest of the application source code.
12 */
13
14 #ifndef _CONFIG_ALLOC_H
15 #define _CONFIG_ALLOC_H
16
17 #include "llvm/Config/config.h"
18
19 /*
20 * This is a modified version of that suggested by the Autoconf manual.
21 * 1) The #pragma is indented so that pre-ANSI C compilers ignore it.
22 * 2) If alloca.h cannot be found, then try stdlib.h. Some platforms
23 * (notably FreeBSD) defined alloca() there.
24 */
25 #ifdef _MSC_VER
26 #include
27 #define alloca _alloca
28 #elif defined(HAVE_ALLOCA_H)
29 #include
30 #elif defined(__MINGW32__) && defined(HAVE_MALLOC_H)
31 #include
32 #elif !defined(__GNUC__)
33 # ifdef _AIX
34 # pragma alloca
35 # else
36 # ifndef alloca
37 char * alloca ();
38 # endif
39 # endif
40 #else
41 # ifdef HAVE_STDLIB_H
42 # include
43 # else
44 # error "The function alloca() is required but not found!"
45 # endif
46 #endif
47
48 #endif