summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2012-11-23 21:55:46 +0000
committerVincent Torri <vincent.torri@gmail.com>2012-11-23 21:55:46 +0000
commita943f063bc3903f26c19537b61d3e84111239db9 (patch)
tree72bb4059e57e8225d617582b5790dfb312a0bc1c
parent14a4767f24c89d12caeba9b519837019c2bf4ea5 (diff)
ecore, eio : revert alloca commits (and other solaris math commits, i know)
SVN revision: 79610
Diffstat (limited to '')
-rw-r--r--legacy/ecore/ChangeLog5
-rw-r--r--legacy/ecore/src/lib/ecore/ecore_alloc.c18
-rw-r--r--legacy/ecore/src/lib/ecore/ecore_exe.c18
-rw-r--r--legacy/ecore/src/lib/ecore/ecore_getopt.c35
-rw-r--r--legacy/ecore/src/lib/ecore/ecore_pipe.c4
-rw-r--r--legacy/ecore/src/lib/ecore_con/dns.c20
-rw-r--r--legacy/ecore/src/lib/ecore_con/ecore_con.c18
-rw-r--r--legacy/ecore/src/lib/ecore_con/ecore_con_alloc.c18
-rw-r--r--legacy/ecore/src/lib/ecore_con/ecore_con_eet.c18
-rw-r--r--legacy/ecore/src/lib/ecore_con/ecore_con_info.c1
-rw-r--r--legacy/ecore/src/lib/ecore_con/ecore_con_local_win32.c18
-rw-r--r--legacy/ecore/src/lib/ecore_con/ecore_con_socks.c18
-rw-r--r--legacy/ecore/src/lib/ecore_con/ecore_con_ssl.c18
-rw-r--r--legacy/ecore/src/lib/ecore_config/ecore_config.c18
-rw-r--r--legacy/ecore/src/lib/ecore_evas/ecore_evas_extn.c18
-rw-r--r--legacy/ecore/src/lib/ecore_evas/ecore_evas_wayland_egl.c18
-rw-r--r--legacy/ecore/src/lib/ecore_evas/ecore_evas_wayland_shm.c18
-rw-r--r--legacy/ecore/src/lib/ecore_fb/ecore_fb_vt.c18
-rw-r--r--legacy/ecore/src/lib/ecore_file/ecore_file.c18
-rw-r--r--legacy/ecore/src/lib/ecore_file/ecore_file_monitor.c18
-rw-r--r--legacy/ecore/src/lib/ecore_imf/ecore_imf_context.c18
-rw-r--r--legacy/ecore/src/lib/ecore_ipc/ecore_ipc.c18
-rw-r--r--legacy/ecore/src/lib/ecore_wayland/ecore_wl.c18
-rw-r--r--legacy/ecore/src/lib/ecore_wayland/ecore_wl_output.c18
-rw-r--r--legacy/ecore/src/lib/ecore_wayland/ecore_wl_window.c18
-rw-r--r--legacy/ecore/src/lib/ecore_win32/ecore_win32_window.c18
-rw-r--r--legacy/ecore/src/lib/ecore_wince/ecore_wince_window.c18
-rw-r--r--legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_e.c22
-rw-r--r--legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_image.c22
-rw-r--r--legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_selection.c22
-rw-r--r--legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_window.c22
-rw-r--r--legacy/ecore/src/lib/ecore_x/xlib/ecore_x.c18
-rw-r--r--legacy/ecore/src/lib/ecore_x/xlib/ecore_x_atoms.c1
-rw-r--r--legacy/ecore/src/lib/ecore_x/xlib/ecore_x_e.c18
-rw-r--r--legacy/ecore/src/lib/ecore_x/xlib/ecore_x_image.c18
-rw-r--r--legacy/ecore/src/lib/ecore_x/xlib/ecore_x_randr_12.c18
-rw-r--r--legacy/ecore/src/lib/ecore_x/xlib/ecore_x_selection.c18
-rw-r--r--legacy/ecore/src/lib/ecore_x/xlib/ecore_x_window_prop.c18
-rw-r--r--legacy/eio/configure.ac1
-rw-r--r--legacy/eio/src/lib/eio_dir.c4
-rw-r--r--legacy/eio/src/lib/eio_eet.c4
-rw-r--r--legacy/eio/src/lib/eio_file.c22
-rw-r--r--legacy/eio/src/lib/eio_main.c5
-rw-r--r--legacy/eio/src/lib/eio_map.c4
-rw-r--r--legacy/eio/src/lib/eio_monitor.c4
-rw-r--r--legacy/eio/src/lib/eio_monitor_inotify.c22
-rw-r--r--legacy/eio/src/lib/eio_monitor_poll.c22
-rw-r--r--legacy/eio/src/lib/eio_monitor_win32.c22
-rw-r--r--legacy/eio/src/lib/eio_private.h4
-rw-r--r--legacy/eio/src/lib/eio_single.c5
-rw-r--r--legacy/eio/src/lib/eio_xattr.c4
51 files changed, 22 insertions, 759 deletions
diff --git a/legacy/ecore/ChangeLog b/legacy/ecore/ChangeLog
index 992f479ed6..6cc4a95d39 100644
--- a/legacy/ecore/ChangeLog
+++ b/legacy/ecore/ChangeLog
@@ -1022,8 +1022,3 @@
10222012-11-23 Eduardo Lima (Etrunko) 10222012-11-23 Eduardo Lima (Etrunko)
1023 1023
1024 * Fix leak of strcut wl_registry in Ecore Wayland 1024 * Fix leak of strcut wl_registry in Ecore Wayland
1025
10262012-11-23 Sebastian Dransfeld
1027
1028 * Correctly define alloca
1029 * Minor build fixes for solaris
diff --git a/legacy/ecore/src/lib/ecore/ecore_alloc.c b/legacy/ecore/src/lib/ecore/ecore_alloc.c
index fc51e50319..bec66ef0d5 100644
--- a/legacy/ecore/src/lib/ecore/ecore_alloc.c
+++ b/legacy/ecore/src/lib/ecore/ecore_alloc.c
@@ -2,24 +2,6 @@
2# include "config.h" 2# include "config.h"
3#endif 3#endif
4 4
5#undef alloca
6#ifdef HAVE_ALLOCA_H
7# include <alloca.h>
8#elif defined __GNUC__
9# define alloca __builtin_alloca
10#elif defined _AIX
11# define alloca __alloca
12#elif defined _MSC_VER
13# include <malloc.h>
14# define alloca _alloca
15#else
16# include <stddef.h>
17# ifdef __cplusplus
18extern "C"
19# endif
20void *alloca (size_t);
21#endif
22
23#include <stdlib.h> 5#include <stdlib.h>
24 6
25#include <Eina.h> 7#include <Eina.h>
diff --git a/legacy/ecore/src/lib/ecore/ecore_exe.c b/legacy/ecore/src/lib/ecore/ecore_exe.c
index f3f5220226..7cc4b0f3bb 100644
--- a/legacy/ecore/src/lib/ecore/ecore_exe.c
+++ b/legacy/ecore/src/lib/ecore/ecore_exe.c
@@ -2,24 +2,6 @@
2# include <config.h> 2# include <config.h>
3#endif 3#endif
4 4
5#undef alloca
6#ifdef HAVE_ALLOCA_H
7# include <alloca.h>
8#elif defined __GNUC__
9# define alloca __builtin_alloca
10#elif defined _AIX
11# define alloca __alloca
12#elif defined _MSC_VER
13# include <malloc.h>
14# define alloca _alloca
15#else
16# include <stddef.h>
17# ifdef __cplusplus
18extern "C"
19# endif
20void *alloca (size_t);
21#endif
22
23#include <stdlib.h> 5#include <stdlib.h>
24#include <stdio.h> 6#include <stdio.h>
25#include <string.h> 7#include <string.h>
diff --git a/legacy/ecore/src/lib/ecore/ecore_getopt.c b/legacy/ecore/src/lib/ecore/ecore_getopt.c
index d3ffb282f3..377d310f53 100644
--- a/legacy/ecore/src/lib/ecore/ecore_getopt.c
+++ b/legacy/ecore/src/lib/ecore/ecore_getopt.c
@@ -2,24 +2,6 @@
2# include <config.h> 2# include <config.h>
3#endif 3#endif
4 4
5#undef alloca
6#ifdef HAVE_ALLOCA_H
7# include <alloca.h>
8#elif defined __GNUC__
9# define alloca __builtin_alloca
10#elif defined _AIX
11# define alloca __alloca
12#elif defined _MSC_VER
13# include <malloc.h>
14# define alloca _alloca
15#else
16# include <stddef.h>
17# ifdef __cplusplus
18extern "C"
19# endif
20void *alloca (size_t);
21#endif
22
23#ifdef STDC_HEADERS 5#ifdef STDC_HEADERS
24# include <stdlib.h> 6# include <stdlib.h>
25# include <stddef.h> 7# include <stddef.h>
@@ -28,6 +10,23 @@ void *alloca (size_t);
28# include <stdlib.h> 10# include <stdlib.h>
29# endif 11# endif
30#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
31 30
32#include <stdlib.h> 31#include <stdlib.h>
33#include <stdio.h> 32#include <stdio.h>
diff --git a/legacy/ecore/src/lib/ecore/ecore_pipe.c b/legacy/ecore/src/lib/ecore/ecore_pipe.c
index 7e0e866712..5da0923f72 100644
--- a/legacy/ecore/src/lib/ecore/ecore_pipe.c
+++ b/legacy/ecore/src/lib/ecore/ecore_pipe.c
@@ -7,10 +7,6 @@
7#include <errno.h> 7#include <errno.h>
8#include <math.h> 8#include <math.h>
9 9
10#ifdef __SUNPRO_C
11# include <ieeefp.h>
12#endif
13
14#ifdef HAVE_ISFINITE 10#ifdef HAVE_ISFINITE
15# define ECORE_FINITE(t) isfinite(t) 11# define ECORE_FINITE(t) isfinite(t)
16#else 12#else
diff --git a/legacy/ecore/src/lib/ecore_con/dns.c b/legacy/ecore/src/lib/ecore_con/dns.c
index 4582f5bad7..b92a3156f5 100644
--- a/legacy/ecore/src/lib/ecore_con/dns.c
+++ b/legacy/ecore/src/lib/ecore_con/dns.c
@@ -27,24 +27,6 @@
27# include "config.h" 27# include "config.h"
28#endif 28#endif
29 29
30#undef alloca
31#ifdef HAVE_ALLOCA_H
32# include <alloca.h>
33#elif defined __GNUC__
34# define alloca __builtin_alloca
35#elif defined _AIX
36# define alloca __alloca
37#elif defined _MSC_VER
38# include <malloc.h>
39# define alloca _alloca
40#else
41# include <stddef.h>
42# ifdef __cplusplus
43extern "C"
44# endif
45void *alloca (size_t);
46#endif
47
48#if !defined(__FreeBSD__) 30#if !defined(__FreeBSD__)
49#ifndef _XOPEN_SOURCE 31#ifndef _XOPEN_SOURCE
50#define _XOPEN_SOURCE 600 32#define _XOPEN_SOURCE 600
@@ -696,7 +678,7 @@ size_t dns_strlcat(char *dst, const char *src, size_t lim) {
696} /* dns_strlcat() */ 678} /* dns_strlcat() */
697 679
698 680
699#if defined(_WIN32) || defined(__SUNPRO_C) 681#if _WIN32
700 682
701static char *dns_strsep(char **sp, const char *delim) { 683static char *dns_strsep(char **sp, const char *delim) {
702 char *p; 684 char *p;
diff --git a/legacy/ecore/src/lib/ecore_con/ecore_con.c b/legacy/ecore/src/lib/ecore_con/ecore_con.c
index 1b253b997b..6298d0483a 100644
--- a/legacy/ecore/src/lib/ecore_con/ecore_con.c
+++ b/legacy/ecore/src/lib/ecore_con/ecore_con.c
@@ -2,24 +2,6 @@
2# include <config.h> 2# include <config.h>
3#endif 3#endif
4 4
5#undef alloca
6#ifdef HAVE_ALLOCA_H
7# include <alloca.h>
8#elif defined __GNUC__
9# define alloca __builtin_alloca
10#elif defined _AIX
11# define alloca __alloca
12#elif defined _MSC_VER
13# include <malloc.h>
14# define alloca _alloca
15#else
16# include <stddef.h>
17# ifdef __cplusplus
18extern "C"
19# endif
20void *alloca (size_t);
21#endif
22
23#include <stdio.h> 5#include <stdio.h>
24#include <string.h> 6#include <string.h>
25#include <sys/types.h> 7#include <sys/types.h>
diff --git a/legacy/ecore/src/lib/ecore_con/ecore_con_alloc.c b/legacy/ecore/src/lib/ecore_con/ecore_con_alloc.c
index 11ad036ee2..324d47d100 100644
--- a/legacy/ecore/src/lib/ecore_con/ecore_con_alloc.c
+++ b/legacy/ecore/src/lib/ecore_con/ecore_con_alloc.c
@@ -2,24 +2,6 @@
2# include "config.h" 2# include "config.h"
3#endif 3#endif
4 4
5#undef alloca
6#ifdef HAVE_ALLOCA_H
7# include <alloca.h>
8#elif defined __GNUC__
9# define alloca __builtin_alloca
10#elif defined _AIX
11# define alloca __alloca
12#elif defined _MSC_VER
13# include <malloc.h>
14# define alloca _alloca
15#else
16# include <stddef.h>
17# ifdef __cplusplus
18extern "C"
19# endif
20void *alloca (size_t);
21#endif
22
23#include "Ecore.h" 5#include "Ecore.h"
24#include "ecore_private.h" 6#include "ecore_private.h"
25#include "Ecore_Con.h" 7#include "Ecore_Con.h"
diff --git a/legacy/ecore/src/lib/ecore_con/ecore_con_eet.c b/legacy/ecore/src/lib/ecore_con/ecore_con_eet.c
index 6802fe3050..ece348ef8d 100644
--- a/legacy/ecore/src/lib/ecore_con/ecore_con_eet.c
+++ b/legacy/ecore/src/lib/ecore_con/ecore_con_eet.c
@@ -2,24 +2,6 @@
2# include <config.h> 2# include <config.h>
3#endif 3#endif
4 4
5#undef alloca
6#ifdef HAVE_ALLOCA_H
7# include <alloca.h>
8#elif defined __GNUC__
9# define alloca __builtin_alloca
10#elif defined _AIX
11# define alloca __alloca
12#elif defined _MSC_VER
13# include <malloc.h>
14# define alloca _alloca
15#else
16# include <stddef.h>
17# ifdef __cplusplus
18extern "C"
19# endif
20void *alloca (size_t);
21#endif
22
23#include <Eina.h> 5#include <Eina.h>
24 6
25#include "Ecore_Con_Eet.h" 7#include "Ecore_Con_Eet.h"
diff --git a/legacy/ecore/src/lib/ecore_con/ecore_con_info.c b/legacy/ecore/src/lib/ecore_con/ecore_con_info.c
index afd90a4842..fdcf0b9a58 100644
--- a/legacy/ecore/src/lib/ecore_con/ecore_con_info.c
+++ b/legacy/ecore/src/lib/ecore_con/ecore_con_info.c
@@ -9,7 +9,6 @@
9# include <config.h> 9# include <config.h>
10#endif 10#endif
11 11
12#undef alloca
13#ifdef HAVE_ALLOCA_H 12#ifdef HAVE_ALLOCA_H
14# include <alloca.h> 13# include <alloca.h>
15#elif defined __GNUC__ 14#elif defined __GNUC__
diff --git a/legacy/ecore/src/lib/ecore_con/ecore_con_local_win32.c b/legacy/ecore/src/lib/ecore_con/ecore_con_local_win32.c
index 67b1717617..2b7e5c5bd2 100644
--- a/legacy/ecore/src/lib/ecore_con/ecore_con_local_win32.c
+++ b/legacy/ecore/src/lib/ecore_con/ecore_con_local_win32.c
@@ -2,24 +2,6 @@
2# include <config.h> 2# include <config.h>
3#endif 3#endif
4 4
5#undef alloca
6#ifdef HAVE_ALLOCA_H
7# include <alloca.h>
8#elif defined __GNUC__
9# define alloca __builtin_alloca
10#elif defined _AIX
11# define alloca __alloca
12#elif defined _MSC_VER
13# include <malloc.h>
14# define alloca _alloca
15#else
16# include <stddef.h>
17# ifdef __cplusplus
18extern "C"
19# endif
20void *alloca (size_t);
21#endif
22
23#include <process.h> 5#include <process.h>
24 6
25#include <Evil.h> 7#include <Evil.h>
diff --git a/legacy/ecore/src/lib/ecore_con/ecore_con_socks.c b/legacy/ecore/src/lib/ecore_con/ecore_con_socks.c
index 4e0abd355f..ad9b9ca23e 100644
--- a/legacy/ecore/src/lib/ecore_con/ecore_con_socks.c
+++ b/legacy/ecore/src/lib/ecore_con/ecore_con_socks.c
@@ -2,24 +2,6 @@
2# include <config.h> 2# include <config.h>
3#endif 3#endif
4 4
5#undef alloca
6#ifdef HAVE_ALLOCA_H
7# include <alloca.h>
8#elif defined __GNUC__
9# define alloca __builtin_alloca
10#elif defined _AIX
11# define alloca __alloca
12#elif defined _MSC_VER
13# include <malloc.h>
14# define alloca _alloca
15#else
16# include <stddef.h>
17# ifdef __cplusplus
18extern "C"
19# endif
20void *alloca (size_t);
21#endif
22
23#include <stdio.h> 5#include <stdio.h>
24#include <string.h> 6#include <string.h>
25#include <sys/types.h> 7#include <sys/types.h>
diff --git a/legacy/ecore/src/lib/ecore_con/ecore_con_ssl.c b/legacy/ecore/src/lib/ecore_con/ecore_con_ssl.c
index 3eb59b342b..1027dbb118 100644
--- a/legacy/ecore/src/lib/ecore_con/ecore_con_ssl.c
+++ b/legacy/ecore/src/lib/ecore_con/ecore_con_ssl.c
@@ -2,24 +2,6 @@
2# include <config.h> 2# include <config.h>
3#endif 3#endif
4 4
5#undef alloca
6#ifdef HAVE_ALLOCA_H
7# include <alloca.h>
8#elif defined __GNUC__
9# define alloca __builtin_alloca
10#elif defined _AIX
11# define alloca __alloca
12#elif defined _MSC_VER
13# include <malloc.h>
14# define alloca _alloca
15#else
16# include <stddef.h>
17# ifdef __cplusplus
18extern "C"
19# endif
20void *alloca (size_t);
21#endif
22
23#if USE_GNUTLS 5#if USE_GNUTLS
24# include <gnutls/gnutls.h> 6# include <gnutls/gnutls.h>
25# include <gnutls/x509.h> 7# include <gnutls/x509.h>
diff --git a/legacy/ecore/src/lib/ecore_config/ecore_config.c b/legacy/ecore/src/lib/ecore_config/ecore_config.c
index d8194fea0b..e81538eb62 100644
--- a/legacy/ecore/src/lib/ecore_config/ecore_config.c
+++ b/legacy/ecore/src/lib/ecore_config/ecore_config.c
@@ -2,24 +2,6 @@
2# include <config.h> 2# include <config.h>
3#endif 3#endif
4 4
5#undef alloca
6#ifdef HAVE_ALLOCA_H
7# include <alloca.h>
8#elif defined __GNUC__
9# define alloca __builtin_alloca
10#elif defined _AIX
11# define alloca __alloca
12#elif defined _MSC_VER
13# include <malloc.h>
14# define alloca _alloca
15#else
16# include <stddef.h>
17# ifdef __cplusplus
18extern "C"
19# endif
20void *alloca (size_t);
21#endif
22
23#include <string.h> 5#include <string.h>
24#include <ctype.h> 6#include <ctype.h>
25#include <stdio.h> 7#include <stdio.h>
diff --git a/legacy/ecore/src/lib/ecore_evas/ecore_evas_extn.c b/legacy/ecore/src/lib/ecore_evas/ecore_evas_extn.c
index 24ecc6416e..c192a3a82b 100644
--- a/legacy/ecore/src/lib/ecore_evas/ecore_evas_extn.c
+++ b/legacy/ecore/src/lib/ecore_evas/ecore_evas_extn.c
@@ -2,24 +2,6 @@
2# include <config.h> 2# include <config.h>
3#endif 3#endif
4 4
5#undef alloca
6#ifdef HAVE_ALLOCA_H
7# include <alloca.h>
8#elif defined __GNUC__
9# define alloca __builtin_alloca
10#elif defined _AIX
11# define alloca __alloca
12#elif defined _MSC_VER
13# include <malloc.h>
14# define alloca _alloca
15#else
16# include <stddef.h>
17# ifdef __cplusplus
18extern "C"
19# endif
20void *alloca (size_t);
21#endif
22
23#include <stdio.h> 5#include <stdio.h>
24#include <stdlib.h> 6#include <stdlib.h>
25#include <sys/types.h> 7#include <sys/types.h>
diff --git a/legacy/ecore/src/lib/ecore_evas/ecore_evas_wayland_egl.c b/legacy/ecore/src/lib/ecore_evas/ecore_evas_wayland_egl.c
index e2a27816f4..430da4b8cb 100644
--- a/legacy/ecore/src/lib/ecore_evas/ecore_evas_wayland_egl.c
+++ b/legacy/ecore/src/lib/ecore_evas/ecore_evas_wayland_egl.c
@@ -2,24 +2,6 @@
2# include "config.h" 2# include "config.h"
3#endif 3#endif
4 4
5#undef alloca
6#ifdef HAVE_ALLOCA_H
7# include <alloca.h>
8#elif defined __GNUC__
9# define alloca __builtin_alloca
10#elif defined _AIX
11# define alloca __alloca
12#elif defined _MSC_VER
13# include <malloc.h>
14# define alloca _alloca
15#else
16# include <stddef.h>
17# ifdef __cplusplus
18extern "C"
19# endif
20void *alloca (size_t);
21#endif
22
23//#define LOGFNS 1 5//#define LOGFNS 1
24 6
25#ifdef LOGFNS 7#ifdef LOGFNS
diff --git a/legacy/ecore/src/lib/ecore_evas/ecore_evas_wayland_shm.c b/legacy/ecore/src/lib/ecore_evas/ecore_evas_wayland_shm.c
index c6e8ec3ffe..f587e3da5c 100644
--- a/legacy/ecore/src/lib/ecore_evas/ecore_evas_wayland_shm.c
+++ b/legacy/ecore/src/lib/ecore_evas/ecore_evas_wayland_shm.c
@@ -2,24 +2,6 @@
2# include "config.h" 2# include "config.h"
3#endif 3#endif
4 4
5#undef alloca
6#ifdef HAVE_ALLOCA_H
7# include <alloca.h>
8#elif defined __GNUC__
9# define alloca __builtin_alloca
10#elif defined _AIX
11# define alloca __alloca
12#elif defined _MSC_VER
13# include <malloc.h>
14# define alloca _alloca
15#else
16# include <stddef.h>
17# ifdef __cplusplus
18extern "C"
19# endif
20void *alloca (size_t);
21#endif
22
23//#define LOGFNS 1 5//#define LOGFNS 1
24 6
25#ifdef LOGFNS 7#ifdef LOGFNS
diff --git a/legacy/ecore/src/lib/ecore_fb/ecore_fb_vt.c b/legacy/ecore/src/lib/ecore_fb/ecore_fb_vt.c
index 2cfe55b0c1..09e3f37c1b 100644
--- a/legacy/ecore/src/lib/ecore_fb/ecore_fb_vt.c
+++ b/legacy/ecore/src/lib/ecore_fb/ecore_fb_vt.c
@@ -2,24 +2,6 @@
2# include <config.h> 2# include <config.h>
3#endif 3#endif
4 4
5#undef alloca
6#ifdef HAVE_ALLOCA_H
7# include <alloca.h>
8#elif defined __GNUC__
9# define alloca __builtin_alloca
10#elif defined _AIX
11# define alloca __alloca
12#elif defined _MSC_VER
13# include <malloc.h>
14# define alloca _alloca
15#else
16# include <stddef.h>
17# ifdef __cplusplus
18extern "C"
19# endif
20void *alloca (size_t);
21#endif
22
23#include "Ecore_Fb.h" 5#include "Ecore_Fb.h"
24#include "ecore_fb_private.h" 6#include "ecore_fb_private.h"
25 7
diff --git a/legacy/ecore/src/lib/ecore_file/ecore_file.c b/legacy/ecore/src/lib/ecore_file/ecore_file.c
index b276e33580..6876511fc6 100644
--- a/legacy/ecore/src/lib/ecore_file/ecore_file.c
+++ b/legacy/ecore/src/lib/ecore_file/ecore_file.c
@@ -2,24 +2,6 @@
2# include <config.h> 2# include <config.h>
3#endif 3#endif
4 4
5#undef alloca
6#ifdef HAVE_ALLOCA_H
7# include <alloca.h>
8#elif defined __GNUC__
9# define alloca __builtin_alloca
10#elif defined _AIX
11# define alloca __alloca
12#elif defined _MSC_VER
13# include <malloc.h>
14# define alloca _alloca
15#else
16# include <stddef.h>
17# ifdef __cplusplus
18extern "C"
19# endif
20void *alloca (size_t);
21#endif
22
23#include <stdlib.h> 5#include <stdlib.h>
24#include <stdio.h> 6#include <stdio.h>
25#include <string.h> 7#include <string.h>
diff --git a/legacy/ecore/src/lib/ecore_file/ecore_file_monitor.c b/legacy/ecore/src/lib/ecore_file/ecore_file_monitor.c
index ee0d8821ad..8b07589a9e 100644
--- a/legacy/ecore/src/lib/ecore_file/ecore_file_monitor.c
+++ b/legacy/ecore/src/lib/ecore_file/ecore_file_monitor.c
@@ -2,24 +2,6 @@
2# include <config.h> 2# include <config.h>
3#endif 3#endif
4 4
5#undef alloca
6#ifdef HAVE_ALLOCA_H
7# include <alloca.h>
8#elif defined __GNUC__
9# define alloca __builtin_alloca
10#elif defined _AIX
11# define alloca __alloca
12#elif defined _MSC_VER
13# include <malloc.h>
14# define alloca _alloca
15#else
16# include <stddef.h>
17# ifdef __cplusplus
18extern "C"
19# endif
20void *alloca (size_t);
21#endif
22
23#include "ecore_file_private.h" 5#include "ecore_file_private.h"
24 6
25typedef enum { 7typedef enum {
diff --git a/legacy/ecore/src/lib/ecore_imf/ecore_imf_context.c b/legacy/ecore/src/lib/ecore_imf/ecore_imf_context.c
index cd8ef81c34..d9aeca9836 100644
--- a/legacy/ecore/src/lib/ecore_imf/ecore_imf_context.c
+++ b/legacy/ecore/src/lib/ecore_imf/ecore_imf_context.c
@@ -2,24 +2,6 @@
2# include <config.h> 2# include <config.h>
3#endif 3#endif
4 4
5#undef alloca
6#ifdef HAVE_ALLOCA_H
7# include <alloca.h>
8#elif defined __GNUC__
9# define alloca __builtin_alloca
10#elif defined _AIX
11# define alloca __alloca
12#elif defined _MSC_VER
13# include <malloc.h>
14# define alloca _alloca
15#else
16# include <stddef.h>
17# ifdef __cplusplus
18extern "C"
19# endif
20void *alloca (size_t);
21#endif
22
23#include <stdlib.h> 5#include <stdlib.h>
24#include <string.h> 6#include <string.h>
25#include <locale.h> 7#include <locale.h>
diff --git a/legacy/ecore/src/lib/ecore_ipc/ecore_ipc.c b/legacy/ecore/src/lib/ecore_ipc/ecore_ipc.c
index b62295b989..0480001aa5 100644
--- a/legacy/ecore/src/lib/ecore_ipc/ecore_ipc.c
+++ b/legacy/ecore/src/lib/ecore_ipc/ecore_ipc.c
@@ -2,24 +2,6 @@
2# include <config.h> 2# include <config.h>
3#endif 3#endif
4 4
5#undef alloca
6#ifdef HAVE_ALLOCA_H
7# include <alloca.h>
8#elif defined __GNUC__
9# define alloca __builtin_alloca
10#elif defined _AIX
11# define alloca __alloca
12#elif defined _MSC_VER
13# include <malloc.h>
14# define alloca _alloca
15#else
16# include <stddef.h>
17# ifdef __cplusplus
18extern "C"
19# endif
20void *alloca (size_t);
21#endif
22
23#include <string.h> 5#include <string.h>
24 6
25#ifdef HAVE_NETINET_IN_H 7#ifdef HAVE_NETINET_IN_H
diff --git a/legacy/ecore/src/lib/ecore_wayland/ecore_wl.c b/legacy/ecore/src/lib/ecore_wayland/ecore_wl.c
index 44196853fa..8abfc74bfa 100644
--- a/legacy/ecore/src/lib/ecore_wayland/ecore_wl.c
+++ b/legacy/ecore/src/lib/ecore_wayland/ecore_wl.c
@@ -2,24 +2,6 @@
2# include <config.h> 2# include <config.h>
3#endif 3#endif
4 4
5#undef alloca
6#ifdef HAVE_ALLOCA_H
7# include <alloca.h>
8#elif defined __GNUC__
9# define alloca __builtin_alloca
10#elif defined _AIX
11# define alloca __alloca
12#elif defined _MSC_VER
13# include <malloc.h>
14# define alloca _alloca
15#else
16# include <stddef.h>
17# ifdef __cplusplus
18extern "C"
19# endif
20void *alloca (size_t);
21#endif
22
23#include <fcntl.h> 5#include <fcntl.h>
24#include "ecore_wl_private.h" 6#include "ecore_wl_private.h"
25 7
diff --git a/legacy/ecore/src/lib/ecore_wayland/ecore_wl_output.c b/legacy/ecore/src/lib/ecore_wayland/ecore_wl_output.c
index d8db6e4ad8..c30086d053 100644
--- a/legacy/ecore/src/lib/ecore_wayland/ecore_wl_output.c
+++ b/legacy/ecore/src/lib/ecore_wayland/ecore_wl_output.c
@@ -2,24 +2,6 @@
2# include <config.h> 2# include <config.h>
3#endif 3#endif
4 4
5#undef alloca
6#ifdef HAVE_ALLOCA_H
7# include <alloca.h>
8#elif defined __GNUC__
9# define alloca __builtin_alloca
10#elif defined _AIX
11# define alloca __alloca
12#elif defined _MSC_VER
13# include <malloc.h>
14# define alloca _alloca
15#else
16# include <stddef.h>
17# ifdef __cplusplus
18extern "C"
19# endif
20void *alloca (size_t);
21#endif
22
23#include "ecore_wl_private.h" 5#include "ecore_wl_private.h"
24 6
25/* local function prototypes */ 7/* local function prototypes */
diff --git a/legacy/ecore/src/lib/ecore_wayland/ecore_wl_window.c b/legacy/ecore/src/lib/ecore_wayland/ecore_wl_window.c
index 1138b32116..80b443b4ca 100644
--- a/legacy/ecore/src/lib/ecore_wayland/ecore_wl_window.c
+++ b/legacy/ecore/src/lib/ecore_wayland/ecore_wl_window.c
@@ -2,24 +2,6 @@
2# include <config.h> 2# include <config.h>
3#endif 3#endif
4 4
5#undef alloca
6#ifdef HAVE_ALLOCA_H
7# include <alloca.h>
8#elif defined __GNUC__
9# define alloca __builtin_alloca
10#elif defined _AIX
11# define alloca __alloca
12#elif defined _MSC_VER
13# include <malloc.h>
14# define alloca _alloca
15#else
16# include <stddef.h>
17# ifdef __cplusplus
18extern "C"
19# endif
20void *alloca (size_t);
21#endif
22
23#include "ecore_wl_private.h" 5#include "ecore_wl_private.h"
24 6
25/* local function prototypes */ 7/* local function prototypes */
diff --git a/legacy/ecore/src/lib/ecore_win32/ecore_win32_window.c b/legacy/ecore/src/lib/ecore_win32/ecore_win32_window.c
index c6fa105223..36f8a86047 100644
--- a/legacy/ecore/src/lib/ecore_win32/ecore_win32_window.c
+++ b/legacy/ecore/src/lib/ecore_win32/ecore_win32_window.c
@@ -2,24 +2,6 @@
2# include <config.h> 2# include <config.h>
3#endif 3#endif
4 4
5#undef alloca
6#ifdef HAVE_ALLOCA_H
7# include <alloca.h>
8#elif defined __GNUC__
9# define alloca __builtin_alloca
10#elif defined _AIX
11# define alloca __alloca
12#elif defined _MSC_VER
13# include <malloc.h>
14# define alloca _alloca
15#else
16# include <stddef.h>
17# ifdef __cplusplus
18extern "C"
19# endif
20void *alloca (size_t);
21#endif
22
23#include <stdlib.h> 5#include <stdlib.h>
24#include <stdio.h> /* for printf */ 6#include <stdio.h> /* for printf */
25 7
diff --git a/legacy/ecore/src/lib/ecore_wince/ecore_wince_window.c b/legacy/ecore/src/lib/ecore_wince/ecore_wince_window.c
index 4f493da8c3..49a6312da3 100644
--- a/legacy/ecore/src/lib/ecore_wince/ecore_wince_window.c
+++ b/legacy/ecore/src/lib/ecore_wince/ecore_wince_window.c
@@ -2,24 +2,6 @@
2# include <config.h> 2# include <config.h>
3#endif 3#endif
4 4
5#undef alloca
6#ifdef HAVE_ALLOCA_H
7# include <alloca.h>
8#elif defined __GNUC__
9# define alloca __builtin_alloca
10#elif defined _AIX
11# define alloca __alloca
12#elif defined _MSC_VER
13# include <malloc.h>
14# define alloca _alloca
15#else
16# include <stddef.h>
17# ifdef __cplusplus
18extern "C"
19# endif
20void *alloca (size_t);
21#endif
22
23#define WIN32_LEAN_AND_MEAN 5#define WIN32_LEAN_AND_MEAN
24#include <windows.h> 6#include <windows.h>
25#undef WIN32_LEAN_AND_MEAN 7#undef WIN32_LEAN_AND_MEAN
diff --git a/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_e.c b/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_e.c
index b13e566abb..82d94b634f 100644
--- a/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_e.c
+++ b/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_e.c
@@ -1,25 +1,3 @@
1#ifdef HAVE_CONFIG_H
2# include <config.h>
3#endif
4
5#undef alloca
6#ifdef HAVE_ALLOCA_H
7# include <alloca.h>
8#elif defined __GNUC__
9# define alloca __builtin_alloca
10#elif defined _AIX
11# define alloca __alloca
12#elif defined _MSC_VER
13# include <malloc.h>
14# define alloca _alloca
15#else
16# include <stddef.h>
17# ifdef __cplusplus
18extern "C"
19# endif
20void *alloca (size_t);
21#endif
22
23#include "ecore_xcb_private.h" 1#include "ecore_xcb_private.h"
24 2
25/* local function prototypes */ 3/* local function prototypes */
diff --git a/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_image.c b/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_image.c
index 92c8c9c2f2..8e221101b0 100644
--- a/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_image.c
+++ b/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_image.c
@@ -1,25 +1,3 @@
1#ifdef HAVE_CONFIG_H
2# include <config.h>
3#endif
4
5#undef alloca
6#ifdef HAVE_ALLOCA_H
7# include <alloca.h>
8#elif defined __GNUC__
9# define alloca __builtin_alloca
10#elif defined _AIX
11# define alloca __alloca
12#elif defined _MSC_VER
13# include <malloc.h>
14# define alloca _alloca
15#else
16# include <stddef.h>
17# ifdef __cplusplus
18extern "C"
19# endif
20void *alloca (size_t);
21#endif
22
23#include "ecore_xcb_private.h" 1#include "ecore_xcb_private.h"
24#include <sys/ipc.h> 2#include <sys/ipc.h>
25#include <sys/shm.h> 3#include <sys/shm.h>
diff --git a/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_selection.c b/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_selection.c
index be4a37e1cc..288d776b2f 100644
--- a/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_selection.c
+++ b/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_selection.c
@@ -1,25 +1,3 @@
1#ifdef HAVE_CONFIG_H
2# include <config.h>
3#endif
4
5#undef alloca
6#ifdef HAVE_ALLOCA_H
7# include <alloca.h>
8#elif defined __GNUC__
9# define alloca __builtin_alloca
10#elif defined _AIX
11# define alloca __alloca
12#elif defined _MSC_VER
13# include <malloc.h>
14# define alloca _alloca
15#else
16# include <stddef.h>
17# ifdef __cplusplus
18extern "C"
19# endif
20void *alloca (size_t);
21#endif
22
23#include "ecore_xcb_private.h" 1#include "ecore_xcb_private.h"
24//#include "Ecore_X_Atoms.h" 2//#include "Ecore_X_Atoms.h"
25 3
diff --git a/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_window.c b/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_window.c
index 2b17c61f24..ba18b503b9 100644
--- a/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_window.c
+++ b/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_window.c
@@ -1,25 +1,3 @@
1#ifdef HAVE_CONFIG_H
2# include <config.h>
3#endif
4
5#undef alloca
6#ifdef HAVE_ALLOCA_H
7# include <alloca.h>
8#elif defined __GNUC__
9# define alloca __builtin_alloca
10#elif defined _AIX
11# define alloca __alloca
12#elif defined _MSC_VER
13# include <malloc.h>
14# define alloca _alloca
15#else
16# include <stddef.h>
17# ifdef __cplusplus
18extern "C"
19# endif
20void *alloca (size_t);
21#endif
22
23#include "ecore_xcb_private.h" 1#include "ecore_xcb_private.h"
24#ifdef ECORE_XCB_RENDER 2#ifdef ECORE_XCB_RENDER
25# include <xcb/render.h> 3# include <xcb/render.h>
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 1d92f7d97e..7cb777d0cd 100644
--- a/legacy/ecore/src/lib/ecore_x/xlib/ecore_x.c
+++ b/legacy/ecore/src/lib/ecore_x/xlib/ecore_x.c
@@ -2,24 +2,6 @@
2# include <config.h> 2# include <config.h>
3#endif /* ifdef HAVE_CONFIG_H */ 3#endif /* ifdef HAVE_CONFIG_H */
4 4
5#undef alloca
6#ifdef HAVE_ALLOCA_H
7# include <alloca.h>
8#elif defined __GNUC__
9# define alloca __builtin_alloca
10#elif defined _AIX
11# define alloca __alloca
12#elif defined _MSC_VER
13# include <malloc.h>
14# define alloca _alloca
15#else
16# include <stddef.h>
17# ifdef __cplusplus
18extern "C"
19# endif
20void *alloca (size_t);
21#endif
22
23#include <stdlib.h> 5#include <stdlib.h>
24#include <string.h> 6#include <string.h>
25#include <unistd.h> 7#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 b3d63b09cd..6518264e87 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,7 +2,6 @@
2# include <config.h> 2# include <config.h>
3#endif /* ifdef HAVE_CONFIG_H */ 3#endif /* ifdef HAVE_CONFIG_H */
4 4
5#undef alloca
6#ifdef HAVE_ALLOCA_H 5#ifdef HAVE_ALLOCA_H
7# include <alloca.h> 6# include <alloca.h>
8#elif defined __GNUC__ 7#elif defined __GNUC__
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 157bfe2fdc..ea17e64e01 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,24 +6,6 @@
6# include <config.h> 6# include <config.h>
7#endif /* ifdef HAVE_CONFIG_H */ 7#endif /* ifdef HAVE_CONFIG_H */
8 8
9#undef alloca
10#ifdef HAVE_ALLOCA_H
11# include <alloca.h>
12#elif defined __GNUC__
13# define alloca __builtin_alloca
14#elif defined _AIX
15# define alloca __alloca
16#elif defined _MSC_VER
17# include <malloc.h>
18# define alloca _alloca
19#else
20# include <stddef.h>
21# ifdef __cplusplus
22extern "C"
23# endif
24void *alloca (size_t);
25#endif
26
27#include "Ecore.h" 9#include "Ecore.h"
28#include "ecore_x_private.h" 10#include "ecore_x_private.h"
29#include "Ecore_X.h" 11#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 a1b0bf5ae8..71a933cc52 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,24 +2,6 @@
2# include <config.h> 2# include <config.h>
3#endif 3#endif
4 4
5#undef alloca
6#ifdef HAVE_ALLOCA_H
7# include <alloca.h>
8#elif defined __GNUC__
9# define alloca __builtin_alloca
10#elif defined _AIX
11# define alloca __alloca
12#elif defined _MSC_VER
13# include <malloc.h>
14# define alloca _alloca
15#else
16# include <stddef.h>
17# ifdef __cplusplus
18extern "C"
19# endif
20void *alloca (size_t);
21#endif
22
23#include <stdlib.h> 5#include <stdlib.h>
24#include <string.h> 6#include <string.h>
25#include <sys/ipc.h> 7#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 b6373f9725..97f1d0cc73 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,24 +6,6 @@
6# include <config.h> 6# include <config.h>
7#endif 7#endif
8 8
9#undef alloca
10#ifdef HAVE_ALLOCA_H
11# include <alloca.h>
12#elif defined __GNUC__
13# define alloca __builtin_alloca
14#elif defined _AIX
15# define alloca __alloca
16#elif defined _MSC_VER
17# include <malloc.h>
18# define alloca _alloca
19#else
20# include <stddef.h>
21# ifdef __cplusplus
22extern "C"
23# endif
24void *alloca (size_t);
25#endif
26
27#include "ecore_x_private.h" 9#include "ecore_x_private.h"
28#include "ecore_x_randr.h" 10#include "ecore_x_randr.h"
29#include <stdio.h> 11#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 997b2bf246..476621a289 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,24 +2,6 @@
2# include <config.h> 2# include <config.h>
3#endif /* ifdef HAVE_CONFIG_H */ 3#endif /* ifdef HAVE_CONFIG_H */
4 4
5#undef alloca
6#ifdef HAVE_ALLOCA_H
7# include <alloca.h>
8#elif defined __GNUC__
9# define alloca __builtin_alloca
10#elif defined _AIX
11# define alloca __alloca
12#elif defined _MSC_VER
13# include <malloc.h>
14# define alloca _alloca
15#else
16# include <stddef.h>
17# ifdef __cplusplus
18extern "C"
19# endif
20void *alloca (size_t);
21#endif
22
23#include <stdlib.h> 5#include <stdlib.h>
24#include <string.h> 6#include <string.h>
25 7
diff --git a/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_window_prop.c b/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_window_prop.c
index bfd8497871..a5824532fb 100644
--- a/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_window_prop.c
+++ b/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_window_prop.c
@@ -2,24 +2,6 @@
2# include <config.h> 2# include <config.h>
3#endif /* ifdef HAVE_CONFIG_H */ 3#endif /* ifdef HAVE_CONFIG_H */
4 4
5#undef alloca
6#ifdef HAVE_ALLOCA_H
7# include <alloca.h>
8#elif defined __GNUC__
9# define alloca __builtin_alloca
10#elif defined _AIX
11# define alloca __alloca
12#elif defined _MSC_VER
13# include <malloc.h>
14# define alloca _alloca
15#else
16# include <stddef.h>
17# ifdef __cplusplus
18extern "C"
19# endif
20void *alloca (size_t);
21#endif
22
23#include <stdlib.h> 5#include <stdlib.h>
24#include <string.h> 6#include <string.h>
25 7
diff --git a/legacy/eio/configure.ac b/legacy/eio/configure.ac
index ab74bd9b76..4f14a6aee5 100644
--- a/legacy/eio/configure.ac
+++ b/legacy/eio/configure.ac
@@ -180,7 +180,6 @@ AC_SUBST(lt_enable_auto_import)
180 180
181### Checks for library functions 181### Checks for library functions
182AC_CHECK_FUNCS([fchmod chown getpwnam getgrnam]) 182AC_CHECK_FUNCS([fchmod chown getpwnam getgrnam])
183AC_FUNC_ALLOCA
184 183
185### Check for splice system call 184### Check for splice system call
186 185
diff --git a/legacy/eio/src/lib/eio_dir.c b/legacy/eio/src/lib/eio_dir.c
index 8a466eaa9c..7bed4fb858 100644
--- a/legacy/eio/src/lib/eio_dir.c
+++ b/legacy/eio/src/lib/eio_dir.c
@@ -17,10 +17,6 @@
17 * if not, see <http://www.gnu.org/licenses/>. 17 * if not, see <http://www.gnu.org/licenses/>.
18 */ 18 */
19 19
20#ifdef HAVE_CONFIG_H
21# include "config.h"
22#endif
23
24#include "eio_private.h" 20#include "eio_private.h"
25#include "Eio.h" 21#include "Eio.h"
26 22
diff --git a/legacy/eio/src/lib/eio_eet.c b/legacy/eio/src/lib/eio_eet.c
index a710952997..049c1e39a9 100644
--- a/legacy/eio/src/lib/eio_eet.c
+++ b/legacy/eio/src/lib/eio_eet.c
@@ -19,10 +19,6 @@
19 * if not, see <http://www.gnu.org/licenses/>. 19 * if not, see <http://www.gnu.org/licenses/>.
20 */ 20 */
21 21
22#ifdef HAVE_CONFIG_H
23# include "config.h"
24#endif
25
26#include "eio_private.h" 22#include "eio_private.h"
27#include "Eio.h" 23#include "Eio.h"
28 24
diff --git a/legacy/eio/src/lib/eio_file.c b/legacy/eio/src/lib/eio_file.c
index 16cff5c799..31122d0c1f 100644
--- a/legacy/eio/src/lib/eio_file.c
+++ b/legacy/eio/src/lib/eio_file.c
@@ -19,28 +19,6 @@
19 * if not, see <http://www.gnu.org/licenses/>. 19 * if not, see <http://www.gnu.org/licenses/>.
20 */ 20 */
21 21
22#ifdef HAVE_CONFIG_H
23# include "config.h"
24#endif
25
26#undef alloca
27#ifdef HAVE_ALLOCA_H
28# include <alloca.h>
29#elif defined __GNUC__
30# define alloca __builtin_alloca
31#elif defined _AIX
32# define alloca __alloca
33#elif defined _MSC_VER
34# include <malloc.h>
35# define alloca _alloca
36#else
37# include <stddef.h>
38# ifdef __cplusplus
39extern "C"
40# endif
41void *alloca (size_t);
42#endif
43
44#include "eio_private.h" 22#include "eio_private.h"
45#include "Eio.h" 23#include "Eio.h"
46 24
diff --git a/legacy/eio/src/lib/eio_main.c b/legacy/eio/src/lib/eio_main.c
index 8ea373b3b3..e65f75b0da 100644
--- a/legacy/eio/src/lib/eio_main.c
+++ b/legacy/eio/src/lib/eio_main.c
@@ -16,11 +16,6 @@
16 * License along with this library; 16 * License along with this library;
17 * if not, see <http://www.gnu.org/licenses/>. 17 * if not, see <http://www.gnu.org/licenses/>.
18 */ 18 */
19
20#ifdef HAVE_CONFIG_H
21# include "config.h"
22#endif
23
24#include "eio_private.h" 19#include "eio_private.h"
25#include "Eio.h" 20#include "Eio.h"
26 21
diff --git a/legacy/eio/src/lib/eio_map.c b/legacy/eio/src/lib/eio_map.c
index fca18d6096..9edc0adebf 100644
--- a/legacy/eio/src/lib/eio_map.c
+++ b/legacy/eio/src/lib/eio_map.c
@@ -19,10 +19,6 @@
19 * if not, see <http://www.gnu.org/licenses/>. 19 * if not, see <http://www.gnu.org/licenses/>.
20 */ 20 */
21 21
22#ifdef HAVE_CONFIG_H
23# include "config.h"
24#endif
25
26#include "eio_private.h" 22#include "eio_private.h"
27#include "Eio.h" 23#include "Eio.h"
28 24
diff --git a/legacy/eio/src/lib/eio_monitor.c b/legacy/eio/src/lib/eio_monitor.c
index bbf430b248..9f735d63c6 100644
--- a/legacy/eio/src/lib/eio_monitor.c
+++ b/legacy/eio/src/lib/eio_monitor.c
@@ -17,10 +17,6 @@
17 * if not, see <http://www.gnu.org/licenses/>. 17 * if not, see <http://www.gnu.org/licenses/>.
18 */ 18 */
19 19
20#ifdef HAVE_CONFIG_H
21# include "config.h"
22#endif
23
24#include "eio_private.h" 20#include "eio_private.h"
25#include "Eio.h" 21#include "Eio.h"
26 22
diff --git a/legacy/eio/src/lib/eio_monitor_inotify.c b/legacy/eio/src/lib/eio_monitor_inotify.c
index 449a6cfd01..b5ffabd81c 100644
--- a/legacy/eio/src/lib/eio_monitor_inotify.c
+++ b/legacy/eio/src/lib/eio_monitor_inotify.c
@@ -17,28 +17,6 @@
17 * if not, see <http://www.gnu.org/licenses/>. 17 * if not, see <http://www.gnu.org/licenses/>.
18 */ 18 */
19 19
20#ifdef HAVE_CONFIG_H
21# include "config.h"
22#endif
23
24#undef alloca
25#ifdef HAVE_ALLOCA_H
26# include <alloca.h>
27#elif defined __GNUC__
28# define alloca __builtin_alloca
29#elif defined _AIX
30# define alloca __alloca
31#elif defined _MSC_VER
32# include <malloc.h>
33# define alloca _alloca
34#else
35# include <stddef.h>
36# ifdef __cplusplus
37extern "C"
38# endif
39void *alloca (size_t);
40#endif
41
42#include "eio_private.h" 20#include "eio_private.h"
43#include "Eio.h" 21#include "Eio.h"
44 22
diff --git a/legacy/eio/src/lib/eio_monitor_poll.c b/legacy/eio/src/lib/eio_monitor_poll.c
index 6ead0492ca..1f09a427d5 100644
--- a/legacy/eio/src/lib/eio_monitor_poll.c
+++ b/legacy/eio/src/lib/eio_monitor_poll.c
@@ -17,28 +17,6 @@
17 * if not, see <http://www.gnu.org/licenses/>. 17 * if not, see <http://www.gnu.org/licenses/>.
18 */ 18 */
19 19
20#ifdef HAVE_CONFIG_H
21# include "config.h"
22#endif
23
24#undef alloca
25#ifdef HAVE_ALLOCA_H
26# include <alloca.h>
27#elif defined __GNUC__
28# define alloca __builtin_alloca
29#elif defined _AIX
30# define alloca __alloca
31#elif defined _MSC_VER
32# include <malloc.h>
33# define alloca _alloca
34#else
35# include <stddef.h>
36# ifdef __cplusplus
37extern "C"
38# endif
39void *alloca (size_t);
40#endif
41
42#include "eio_private.h" 20#include "eio_private.h"
43#include "Eio.h" 21#include "Eio.h"
44 22
diff --git a/legacy/eio/src/lib/eio_monitor_win32.c b/legacy/eio/src/lib/eio_monitor_win32.c
index 01e9b6cd68..16dbaa7fdd 100644
--- a/legacy/eio/src/lib/eio_monitor_win32.c
+++ b/legacy/eio/src/lib/eio_monitor_win32.c
@@ -17,28 +17,6 @@
17 * if not, see <http://www.gnu.org/licenses/>. 17 * if not, see <http://www.gnu.org/licenses/>.
18 */ 18 */
19 19
20#ifdef HAVE_CONFIG_H
21# include "config.h"
22#endif
23
24#undef alloca
25#ifdef HAVE_ALLOCA_H
26# include <alloca.h>
27#elif defined __GNUC__
28# define alloca __builtin_alloca
29#elif defined _AIX
30# define alloca __alloca
31#elif defined _MSC_VER
32# include <malloc.h>
33# define alloca _alloca
34#else
35# include <stddef.h>
36# ifdef __cplusplus
37extern "C"
38# endif
39void *alloca (size_t);
40#endif
41
42#include "eio_private.h" 20#include "eio_private.h"
43#include "Eio.h" 21#include "Eio.h"
44 22
diff --git a/legacy/eio/src/lib/eio_private.h b/legacy/eio/src/lib/eio_private.h
index 6e327a49de..ef983f98a0 100644
--- a/legacy/eio/src/lib/eio_private.h
+++ b/legacy/eio/src/lib/eio_private.h
@@ -1,6 +1,10 @@
1#ifndef EIO_PRIVATE_H_ 1#ifndef EIO_PRIVATE_H_
2#define EIO_PRIVATE_H_ 2#define EIO_PRIVATE_H_
3 3
4#ifdef HAVE_CONFIG_H
5# include "config.h"
6#endif
7
4#include <sys/types.h> 8#include <sys/types.h>
5#ifdef HAVE_DIRENT_H 9#ifdef HAVE_DIRENT_H
6# include <dirent.h> 10# include <dirent.h>
diff --git a/legacy/eio/src/lib/eio_single.c b/legacy/eio/src/lib/eio_single.c
index 2a567d312a..8bc99fa41e 100644
--- a/legacy/eio/src/lib/eio_single.c
+++ b/legacy/eio/src/lib/eio_single.c
@@ -18,11 +18,6 @@
18 * License along with this library; 18 * License along with this library;
19 * if not, see <http://www.gnu.org/licenses/>. 19 * if not, see <http://www.gnu.org/licenses/>.
20 */ 20 */
21
22#ifdef HAVE_CONFIG_H
23# include "config.h"
24#endif
25
26#include "eio_private.h" 21#include "eio_private.h"
27#include "Eio.h" 22#include "Eio.h"
28 23
diff --git a/legacy/eio/src/lib/eio_xattr.c b/legacy/eio/src/lib/eio_xattr.c
index 8ed768bb38..cff21b92e7 100644
--- a/legacy/eio/src/lib/eio_xattr.c
+++ b/legacy/eio/src/lib/eio_xattr.c
@@ -17,10 +17,6 @@
17 * if not, see <http://www.gnu.org/licenses/>. 17 * if not, see <http://www.gnu.org/licenses/>.
18 */ 18 */
19 19
20#ifdef HAVE_CONFIG_H
21# include "config.h"
22#endif
23
24#include "eio_private.h" 20#include "eio_private.h"
25#include "Eio.h" 21#include "Eio.h"
26 22