Ecore: fix alloca declaration

SVN revision: 79613
This commit is contained in:
Vincent Torri 2012-11-23 22:38:23 +00:00
parent a79a4408e4
commit 47a3d97885
13 changed files with 300 additions and 36 deletions

View File

@ -1022,3 +1022,7 @@
2012-11-23 Eduardo Lima (Etrunko) 2012-11-23 Eduardo Lima (Etrunko)
* Fix leak of strcut wl_registry in Ecore Wayland * Fix leak of strcut wl_registry in Ecore Wayland
2012-11-23 Sebastian Dransfeld
* Correctly define alloca

View File

@ -2,6 +2,32 @@
# include <config.h> # include <config.h>
#endif #endif
#ifdef STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# ifdef HAVE_STDLIB_H
# include <stdlib.h>
# endif
#endif
#ifdef HAVE_ALLOCA_H
# include <alloca.h>
#elif !defined alloca
# ifdef __GNUC__
# define alloca __builtin_alloca
# elif defined _AIX
# define alloca __alloca
# elif defined _MSC_VER
# include <malloc.h>
# define alloca _alloca
# elif !defined HAVE_ALLOCA
# ifdef __cplusplus
extern "C"
# endif
void *alloca (size_t);
# endif
#endif
#include <Eina.h> #include <Eina.h>
#include "Ecore_Con_Eet.h" #include "Ecore_Con_Eet.h"

View File

@ -9,21 +9,30 @@
# include <config.h> # include <config.h>
#endif #endif
#ifdef STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# ifdef HAVE_STDLIB_H
# include <stdlib.h>
# endif
#endif
#ifdef HAVE_ALLOCA_H #ifdef HAVE_ALLOCA_H
# include <alloca.h> # include <alloca.h>
#elif defined __GNUC__ #elif !defined alloca
# define alloca __builtin_alloca # ifdef __GNUC__
#elif defined _AIX # define alloca __builtin_alloca
# define alloca __alloca # elif defined _AIX
#elif defined _MSC_VER # define alloca __alloca
# include <malloc.h> # elif defined _MSC_VER
# define alloca _alloca # include <malloc.h>
#else # define alloca _alloca
# include <stddef.h> # elif !defined HAVE_ALLOCA
# ifdef __cplusplus # ifdef __cplusplus
extern "C" extern "C"
# endif
void *alloca (size_t);
# endif # endif
void *alloca(size_t);
#endif #endif
#include <string.h> #include <string.h>

View File

@ -2,6 +2,32 @@
# include <config.h> # include <config.h>
#endif #endif
#ifdef STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# ifdef HAVE_STDLIB_H
# include <stdlib.h>
# endif
#endif
#ifdef HAVE_ALLOCA_H
# include <alloca.h>
#elif !defined alloca
# ifdef __GNUC__
# define alloca __builtin_alloca
# elif defined _AIX
# define alloca __alloca
# elif defined _MSC_VER
# include <malloc.h>
# define alloca _alloca
# elif !defined HAVE_ALLOCA
# ifdef __cplusplus
extern "C"
# endif
void *alloca (size_t);
# endif
#endif
#if USE_GNUTLS #if USE_GNUTLS
# include <gnutls/gnutls.h> # include <gnutls/gnutls.h>
# include <gnutls/x509.h> # include <gnutls/x509.h>

View File

@ -2,6 +2,32 @@
# include <config.h> # include <config.h>
#endif #endif
#ifdef STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# ifdef HAVE_STDLIB_H
# include <stdlib.h>
# endif
#endif
#ifdef HAVE_ALLOCA_H
# include <alloca.h>
#elif !defined alloca
# ifdef __GNUC__
# define alloca __builtin_alloca
# elif defined _AIX
# define alloca __alloca
# elif defined _MSC_VER
# include <malloc.h>
# define alloca _alloca
# elif !defined HAVE_ALLOCA
# ifdef __cplusplus
extern "C"
# endif
void *alloca (size_t);
# endif
#endif
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <sys/types.h> #include <sys/types.h>

View File

@ -2,22 +2,30 @@
# include <config.h> # include <config.h>
#endif #endif
#undef alloca #ifdef STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# ifdef HAVE_STDLIB_H
# include <stdlib.h>
# endif
#endif
#ifdef HAVE_ALLOCA_H #ifdef HAVE_ALLOCA_H
# include <alloca.h> # include <alloca.h>
#elif defined __GNUC__ #elif !defined alloca
# define alloca __builtin_alloca # ifdef __GNUC__
#elif defined _AIX # define alloca __builtin_alloca
# define alloca __alloca # elif defined _AIX
#elif defined _MSC_VER # define alloca __alloca
# include <malloc.h> # elif defined _MSC_VER
# define alloca _alloca # include <malloc.h>
#else # define alloca _alloca
# include <stddef.h> # elif !defined HAVE_ALLOCA
# ifdef __cplusplus # ifdef __cplusplus
extern "C" extern "C"
# endif # endif
void *alloca (size_t); void *alloca (size_t);
# endif
#endif #endif
#include <stdlib.h> #include <stdlib.h>

View File

@ -7,6 +7,32 @@
# include "config.h" # include "config.h"
# endif # endif
#ifdef STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# ifdef HAVE_STDLIB_H
# include <stdlib.h>
# endif
#endif
#ifdef HAVE_ALLOCA_H
# include <alloca.h>
#elif !defined alloca
# ifdef __GNUC__
# define alloca __builtin_alloca
# elif defined _AIX
# define alloca __alloca
# elif defined _MSC_VER
# include <malloc.h>
# define alloca _alloca
# elif !defined HAVE_ALLOCA
# ifdef __cplusplus
extern "C"
# endif
void *alloca (size_t);
# endif
#endif
# include <unistd.h> // included for close & gethostname functions # include <unistd.h> // included for close & gethostname functions
/* generic xcb includes */ /* generic xcb includes */

View File

@ -2,6 +2,32 @@
# include <config.h> # include <config.h>
#endif /* ifdef HAVE_CONFIG_H */ #endif /* ifdef HAVE_CONFIG_H */
#ifdef STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# ifdef HAVE_STDLIB_H
# include <stdlib.h>
# endif
#endif
#ifdef HAVE_ALLOCA_H
# include <alloca.h>
#elif !defined alloca
# ifdef __GNUC__
# define alloca __builtin_alloca
# elif defined _AIX
# define alloca __alloca
# elif defined _MSC_VER
# include <malloc.h>
# define alloca _alloca
# elif !defined HAVE_ALLOCA
# ifdef __cplusplus
extern "C"
# endif
void *alloca (size_t);
# endif
#endif
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>

View File

@ -2,22 +2,31 @@
# include <config.h> # include <config.h>
#endif /* ifdef HAVE_CONFIG_H */ #endif /* ifdef HAVE_CONFIG_H */
#ifdef STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# ifdef HAVE_STDLIB_H
# include <stdlib.h>
# endif
#endif
#ifdef HAVE_ALLOCA_H #ifdef HAVE_ALLOCA_H
# include <alloca.h> # include <alloca.h>
#elif defined __GNUC__ #elif !defined alloca
# define alloca __builtin_alloca # ifdef __GNUC__
#elif defined _AIX # define alloca __builtin_alloca
# define alloca __alloca # elif defined _AIX
#elif defined _MSC_VER # define alloca __alloca
# include <malloc.h> # elif defined _MSC_VER
# define alloca _alloca # include <malloc.h>
#else /* ifdef HAVE_ALLOCA_H */ # define alloca _alloca
# include <stddef.h> # elif !defined HAVE_ALLOCA
# ifdef __cplusplus # ifdef __cplusplus
extern "C" extern "C"
# endif /* ifdef __cplusplus */ # endif
void *alloca(size_t); void *alloca (size_t);
#endif /* ifdef HAVE_ALLOCA_H */ # endif
#endif
#include <string.h> #include <string.h>

View File

@ -6,6 +6,32 @@
# include <config.h> # include <config.h>
#endif /* ifdef HAVE_CONFIG_H */ #endif /* ifdef HAVE_CONFIG_H */
#ifdef STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# ifdef HAVE_STDLIB_H
# include <stdlib.h>
# endif
#endif
#ifdef HAVE_ALLOCA_H
# include <alloca.h>
#elif !defined alloca
# ifdef __GNUC__
# define alloca __builtin_alloca
# elif defined _AIX
# define alloca __alloca
# elif defined _MSC_VER
# include <malloc.h>
# define alloca _alloca
# elif !defined HAVE_ALLOCA
# ifdef __cplusplus
extern "C"
# endif
void *alloca (size_t);
# endif
#endif
#include "Ecore.h" #include "Ecore.h"
#include "ecore_x_private.h" #include "ecore_x_private.h"
#include "Ecore_X.h" #include "Ecore_X.h"

View File

@ -2,6 +2,32 @@
# include <config.h> # include <config.h>
#endif #endif
#ifdef STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# ifdef HAVE_STDLIB_H
# include <stdlib.h>
# endif
#endif
#ifdef HAVE_ALLOCA_H
# include <alloca.h>
#elif !defined alloca
# ifdef __GNUC__
# define alloca __builtin_alloca
# elif defined _AIX
# define alloca __alloca
# elif defined _MSC_VER
# include <malloc.h>
# define alloca _alloca
# elif !defined HAVE_ALLOCA
# ifdef __cplusplus
extern "C"
# endif
void *alloca (size_t);
# endif
#endif
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <sys/ipc.h> #include <sys/ipc.h>

View File

@ -6,6 +6,32 @@
# include <config.h> # include <config.h>
#endif #endif
#ifdef STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# ifdef HAVE_STDLIB_H
# include <stdlib.h>
# endif
#endif
#ifdef HAVE_ALLOCA_H
# include <alloca.h>
#elif !defined alloca
# ifdef __GNUC__
# define alloca __builtin_alloca
# elif defined _AIX
# define alloca __alloca
# elif defined _MSC_VER
# include <malloc.h>
# define alloca _alloca
# elif !defined HAVE_ALLOCA
# ifdef __cplusplus
extern "C"
# endif
void *alloca (size_t);
# endif
#endif
#include "ecore_x_private.h" #include "ecore_x_private.h"
#include "ecore_x_randr.h" #include "ecore_x_randr.h"
#include <stdio.h> #include <stdio.h>

View File

@ -2,6 +2,32 @@
# include <config.h> # include <config.h>
#endif /* ifdef HAVE_CONFIG_H */ #endif /* ifdef HAVE_CONFIG_H */
#ifdef STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# ifdef HAVE_STDLIB_H
# include <stdlib.h>
# endif
#endif
#ifdef HAVE_ALLOCA_H
# include <alloca.h>
#elif !defined alloca
# ifdef __GNUC__
# define alloca __builtin_alloca
# elif defined _AIX
# define alloca __alloca
# elif defined _MSC_VER
# include <malloc.h>
# define alloca _alloca
# elif !defined HAVE_ALLOCA
# ifdef __cplusplus
extern "C"
# endif
void *alloca (size_t);
# endif
#endif
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>