efreet: fancy alloca include in common header

SVN revision: 47664
This commit is contained in:
Sebastian Dransfeld 2010-04-01 19:32:41 +00:00
parent 5d368823ba
commit 3b546516c3
2 changed files with 18 additions and 17 deletions

View File

@ -12,23 +12,6 @@
#include <unistd.h>
#include <sys/mman.h>
#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
# include <stddef.h>
# ifdef __cplusplus
extern "C"
# endif
void *alloca (size_t);
#endif
#include <Ecore_File.h>
#include "Efreet.h"

View File

@ -4,6 +4,24 @@
#include <Eet.h>
#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
# include <stddef.h>
# ifdef __cplusplus
extern "C"
# endif
void *alloca (size_t);
#endif
/**
* @file efreet_private.h
* @brief Contains methods and defines that are private to the Efreet