summaryrefslogtreecommitdiff
path: root/legacy/ecore/src/lib/ecore_x/xlib
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2012-11-23 22:38:23 +0000
committerVincent Torri <vincent.torri@gmail.com>2012-11-23 22:38:23 +0000
commit47a3d97885b80f1e703b55ecd491aabf287fc1dc (patch)
treeb026ba1d2cdddb182b5cc57517fbc997aa98038b /legacy/ecore/src/lib/ecore_x/xlib
parenta79a4408e4a80f202b987fbe700afa78f469593d (diff)
Ecore: fix alloca declaration
SVN revision: 79613
Diffstat (limited to 'legacy/ecore/src/lib/ecore_x/xlib')
-rw-r--r--legacy/ecore/src/lib/ecore_x/xlib/ecore_x.c26
-rw-r--r--legacy/ecore/src/lib/ecore_x/xlib/ecore_x_atoms.c35
-rw-r--r--legacy/ecore/src/lib/ecore_x/xlib/ecore_x_e.c26
-rw-r--r--legacy/ecore/src/lib/ecore_x/xlib/ecore_x_image.c26
-rw-r--r--legacy/ecore/src/lib/ecore_x/xlib/ecore_x_randr_12.c26
-rw-r--r--legacy/ecore/src/lib/ecore_x/xlib/ecore_x_selection.c26
6 files changed, 152 insertions, 13 deletions
diff --git a/legacy/ecore/src/lib/ecore_x/xlib/ecore_x.c b/legacy/ecore/src/lib/ecore_x/xlib/ecore_x.c
index 7cb777d..2b50ad0 100644
--- a/legacy/ecore/src/lib/ecore_x/xlib/ecore_x.c
+++ b/legacy/ecore/src/lib/ecore_x/xlib/ecore_x.c
@@ -2,6 +2,32 @@
2# include <config.h> 2# include <config.h>
3#endif /* ifdef HAVE_CONFIG_H */ 3#endif /* ifdef HAVE_CONFIG_H */
4 4
5#ifdef STDC_HEADERS
6# include <stdlib.h>
7# include <stddef.h>
8#else
9# ifdef HAVE_STDLIB_H
10# include <stdlib.h>
11# endif
12#endif
13#ifdef HAVE_ALLOCA_H
14# include <alloca.h>
15#elif !defined alloca
16# ifdef __GNUC__
17# define alloca __builtin_alloca
18# elif defined _AIX
19# define alloca __alloca
20# elif defined _MSC_VER
21# include <malloc.h>
22# define alloca _alloca
23# elif !defined HAVE_ALLOCA
24# ifdef __cplusplus
25extern "C"
26# endif
27void *alloca (size_t);
28# endif
29#endif
30
5#include <stdlib.h> 31#include <stdlib.h>
6#include <string.h> 32#include <string.h>
7#include <unistd.h> 33#include <unistd.h>
diff --git a/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_atoms.c b/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_atoms.c
index 6518264..2aec7ce 100644
--- a/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_atoms.c
+++ b/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_atoms.c
@@ -2,22 +2,31 @@
2# include <config.h> 2# include <config.h>
3#endif /* ifdef HAVE_CONFIG_H */ 3#endif /* ifdef HAVE_CONFIG_H */
4 4
5#ifdef STDC_HEADERS
6# include <stdlib.h>
7# include <stddef.h>
8#else
9# ifdef HAVE_STDLIB_H
10# include <stdlib.h>
11# endif
12#endif
5#ifdef HAVE_ALLOCA_H 13#ifdef HAVE_ALLOCA_H
6# include <alloca.h> 14# include <alloca.h>
7#elif defined __GNUC__ 15#elif !defined alloca
8# define alloca __builtin_alloca 16# ifdef __GNUC__
9#elif defined _AIX 17# define alloca __builtin_alloca
10# define alloca __alloca 18# elif defined _AIX
11#elif defined _MSC_VER 19# define alloca __alloca
12# include <malloc.h> 20# elif defined _MSC_VER
13# define alloca _alloca 21# include <malloc.h>
14#else /* ifdef HAVE_ALLOCA_H */ 22# define alloca _alloca
15# include <stddef.h> 23# elif !defined HAVE_ALLOCA
16# ifdef __cplusplus 24# ifdef __cplusplus
17extern "C" 25extern "C"
18# endif /* ifdef __cplusplus */ 26# endif
19void *alloca(size_t); 27void *alloca (size_t);
20#endif /* ifdef HAVE_ALLOCA_H */ 28# endif
29#endif
21 30
22#include <string.h> 31#include <string.h>
23 32
diff --git a/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_e.c b/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_e.c
index ea17e64..430b24b 100644
--- a/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_e.c
+++ b/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_e.c
@@ -6,6 +6,32 @@
6# include <config.h> 6# include <config.h>
7#endif /* ifdef HAVE_CONFIG_H */ 7#endif /* ifdef HAVE_CONFIG_H */
8 8
9#ifdef STDC_HEADERS
10# include <stdlib.h>
11# include <stddef.h>
12#else
13# ifdef HAVE_STDLIB_H
14# include <stdlib.h>
15# endif
16#endif
17#ifdef HAVE_ALLOCA_H
18# include <alloca.h>
19#elif !defined alloca
20# ifdef __GNUC__
21# define alloca __builtin_alloca
22# elif defined _AIX
23# define alloca __alloca
24# elif defined _MSC_VER
25# include <malloc.h>
26# define alloca _alloca
27# elif !defined HAVE_ALLOCA
28# ifdef __cplusplus
29extern "C"
30# endif
31void *alloca (size_t);
32# endif
33#endif
34
9#include "Ecore.h" 35#include "Ecore.h"
10#include "ecore_x_private.h" 36#include "ecore_x_private.h"
11#include "Ecore_X.h" 37#include "Ecore_X.h"
diff --git a/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_image.c b/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_image.c
index 71a933c..8f823a4 100644
--- a/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_image.c
+++ b/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_image.c
@@ -2,6 +2,32 @@
2# include <config.h> 2# include <config.h>
3#endif 3#endif
4 4
5#ifdef STDC_HEADERS
6# include <stdlib.h>
7# include <stddef.h>
8#else
9# ifdef HAVE_STDLIB_H
10# include <stdlib.h>
11# endif
12#endif
13#ifdef HAVE_ALLOCA_H
14# include <alloca.h>
15#elif !defined alloca
16# ifdef __GNUC__
17# define alloca __builtin_alloca
18# elif defined _AIX
19# define alloca __alloca
20# elif defined _MSC_VER
21# include <malloc.h>
22# define alloca _alloca
23# elif !defined HAVE_ALLOCA
24# ifdef __cplusplus
25extern "C"
26# endif
27void *alloca (size_t);
28# endif
29#endif
30
5#include <stdlib.h> 31#include <stdlib.h>
6#include <string.h> 32#include <string.h>
7#include <sys/ipc.h> 33#include <sys/ipc.h>
diff --git a/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_randr_12.c b/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_randr_12.c
index 97f1d0c..9e937d7 100644
--- a/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_randr_12.c
+++ b/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_randr_12.c
@@ -6,6 +6,32 @@
6# include <config.h> 6# include <config.h>
7#endif 7#endif
8 8
9#ifdef STDC_HEADERS
10# include <stdlib.h>
11# include <stddef.h>
12#else
13# ifdef HAVE_STDLIB_H
14# include <stdlib.h>
15# endif
16#endif
17#ifdef HAVE_ALLOCA_H
18# include <alloca.h>
19#elif !defined alloca
20# ifdef __GNUC__
21# define alloca __builtin_alloca
22# elif defined _AIX
23# define alloca __alloca
24# elif defined _MSC_VER
25# include <malloc.h>
26# define alloca _alloca
27# elif !defined HAVE_ALLOCA
28# ifdef __cplusplus
29extern "C"
30# endif
31void *alloca (size_t);
32# endif
33#endif
34
9#include "ecore_x_private.h" 35#include "ecore_x_private.h"
10#include "ecore_x_randr.h" 36#include "ecore_x_randr.h"
11#include <stdio.h> 37#include <stdio.h>
diff --git a/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_selection.c b/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_selection.c
index 476621a..099f9f4 100644
--- a/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_selection.c
+++ b/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_selection.c
@@ -2,6 +2,32 @@
2# include <config.h> 2# include <config.h>
3#endif /* ifdef HAVE_CONFIG_H */ 3#endif /* ifdef HAVE_CONFIG_H */
4 4
5#ifdef STDC_HEADERS
6# include <stdlib.h>
7# include <stddef.h>
8#else
9# ifdef HAVE_STDLIB_H
10# include <stdlib.h>
11# endif
12#endif
13#ifdef HAVE_ALLOCA_H
14# include <alloca.h>
15#elif !defined alloca
16# ifdef __GNUC__
17# define alloca __builtin_alloca
18# elif defined _AIX
19# define alloca __alloca
20# elif defined _MSC_VER
21# include <malloc.h>
22# define alloca _alloca
23# elif !defined HAVE_ALLOCA
24# ifdef __cplusplus
25extern "C"
26# endif
27void *alloca (size_t);
28# endif
29#endif
30
5#include <stdlib.h> 31#include <stdlib.h>
6#include <string.h> 32#include <string.h>
7 33