entrance: bump version and check alloca

This commit is contained in:
Michael Bouchaud 2014-01-08 22:25:04 +01:00
parent b7b17e6d37
commit 195f7d3d73
2 changed files with 28 additions and 4 deletions

View File

@ -1,4 +1,4 @@
AC_INIT([entrance], [0.0.5], [enlightenment-devel@lists.sourceforge.net])
AC_INIT([entrance], [0.0.99], [enlightenment-devel@lists.sourceforge.net])
AC_PREREQ([2.59])
AC_CONFIG_SRCDIR([configure.ac])
AC_CONFIG_MACRO_DIR([m4])
@ -143,7 +143,6 @@ if test "x${enable_pam}" = "xyes" ; then
[have_pam="no"])
fi
### Checks for header files
# Pam
@ -172,8 +171,7 @@ EFL_COMPILER_FLAG([-Wmissing-declarations])
### Checks for library functions
AC_FUNC_MALLOC
AC_CHECK_FUNCS(strndup)
AC_FUNC_ALLOCA
AC_OUTPUT([
Makefile

View File

@ -1,5 +1,31 @@
#include "entrance.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 __GNUC__
# define alloca __builtin_alloca
#elif defined _AIX
# define alloca __alloca
#elif defined _MSC_VER
# include <malloc.h>
# define alloca _alloca
#else
# ifndef HAVE_ALLOCA
# ifdef __cplusplus
extern "C"
# endif
void *alloca (size_t);
# endif
#endif
typedef void (*Entrance_Action_Cb)(void *data);
static void _entrance_action_shutdown(void *data);