From fe9a9d8759c0640926c7a2178fa87871223571bc Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Wed, 15 Jun 2016 13:08:52 +0900 Subject: [PATCH] eina - alloca.h - include stdlib and stddef, usze size_t not long --- src/lib/eina/eina_alloca.h | 35 +++++++++++++++++++---------------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/src/lib/eina/eina_alloca.h b/src/lib/eina/eina_alloca.h index 4eb60f0..9339c68 100644 --- a/src/lib/eina/eina_alloca.h +++ b/src/lib/eina/eina_alloca.h @@ -17,7 +17,10 @@ */ #ifndef EINA_ALLOCA_H -#define EINA_ALLOCA_H +# define EINA_ALLOCA_H + +# include +# include /** * @file eina_alloca.h @@ -25,26 +28,26 @@ * depending on the platform. */ -#ifdef EINA_HAVE_ALLOCA_H -# include -#elif !defined alloca -# ifdef __GNUC__ -# define alloca __builtin_alloca -# elif defined _AIX -# define alloca __alloca -# elif defined _MSC_VER -# include -# define alloca _alloca -# elif !defined EINA_HAVE_ALLOCA -# ifdef __cplusplus +# ifdef EINA_HAVE_ALLOCA_H +# include +# elif !defined alloca +# ifdef __GNUC__ +# define alloca __builtin_alloca +# elif defined _AIX +# define alloca __alloca +# elif defined _MSC_VER +# include +# define alloca _alloca +# elif !defined EINA_HAVE_ALLOCA +# ifdef __cplusplus extern "C" -# endif +# endif /** * Allocates memory in the stack frame of the caller, so it's automatically * freed when the caller returns. See alloca(3) for detials. */ -void *alloca (long); +void *alloca(size_t size); +# endif # endif -#endif #endif /* EINA_HAVE_ALLOCA_H */ -- 2.7.4