summaryrefslogtreecommitdiff
path: root/legacy/embryo/src/lib/embryo_str.c
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2012-02-18 13:05:34 +0000
committerVincent Torri <vincent.torri@gmail.com>2012-02-18 13:05:34 +0000
commita7de07d0ce3d455c1f5c933d8df6de9d67cdec1f (patch)
tree841e6b3100d6b993e68ff2c11de2dd4fa7909bcc /legacy/embryo/src/lib/embryo_str.c
parentaab16f91a9ff86f2fec2727fd6065bac9467572f (diff)
Embryo: update alloca declaration
SVN revision: 68106
Diffstat (limited to '')
-rw-r--r--legacy/embryo/src/lib/embryo_str.c41
1 files changed, 25 insertions, 16 deletions
diff --git a/legacy/embryo/src/lib/embryo_str.c b/legacy/embryo/src/lib/embryo_str.c
index 46a3284a13..8f2f5cef28 100644
--- a/legacy/embryo/src/lib/embryo_str.c
+++ b/legacy/embryo/src/lib/embryo_str.c
@@ -2,28 +2,37 @@
2# include "config.h" 2# include "config.h"
3#endif 3#endif
4 4
5#include <stdlib.h> 5#ifdef STDC_HEADERS
6#include <stdio.h> 6# include <stdlib.h>
7#include <string.h> 7# include <stddef.h>
8#include <fnmatch.h> 8#else
9 9# ifdef HAVE_STDLIB_H
10# include <stdlib.h>
11# endif
12#endif
10#ifdef HAVE_ALLOCA_H 13#ifdef HAVE_ALLOCA_H
11# include <alloca.h> 14# include <alloca.h>
12#elif defined __GNUC__ 15#elif !defined alloca
13# define alloca __builtin_alloca 16# ifdef __GNUC__
14#elif defined _AIX 17# define alloca __builtin_alloca
15# define alloca __alloca 18# elif defined _AIX
16#elif defined _MSC_VER 19# define alloca __alloca
17# include <malloc.h> 20# elif defined _MSC_VER
18# define alloca _alloca 21# include <malloc.h>
19#else 22# define alloca _alloca
20# include <stddef.h> 23# elif !defined HAVE_ALLOCA
21# ifdef __cplusplus 24# ifdef __cplusplus
22extern "C" 25extern "C"
23# endif 26# endif
24void *alloca (size_t); 27void *alloca (size_t);
28# endif
25#endif 29#endif
26 30
31#include <stdlib.h>
32#include <stdio.h>
33#include <string.h>
34#include <fnmatch.h>
35
27#include "Embryo.h" 36#include "Embryo.h"
28#include "embryo_private.h" 37#include "embryo_private.h"
29 38