aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/e_fm_main.c
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2009-12-18 13:52:23 +0000
committerVincent Torri <vincent.torri@gmail.com>2009-12-18 13:52:23 +0000
commit7c1f80aefea400214880b8ad6cbe9b4e34b5e527 (patch)
tree949f4444f0652e596f4512048d9f5e98e2cf70f0 /src/bin/e_fm_main.c
parentredefine static inline functions to normal functions (diff)
downloadenlightenment-7c1f80aefea400214880b8ad6cbe9b4e34b5e527.tar.gz
declare alloca where needed and make it portable
SVN revision: 44544
Diffstat (limited to 'src/bin/e_fm_main.c')
-rw-r--r--src/bin/e_fm_main.c21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/bin/e_fm_main.c b/src/bin/e_fm_main.c
index 8db3f0844..8f2f46eb1 100644
--- a/src/bin/e_fm_main.c
+++ b/src/bin/e_fm_main.c
@@ -1,10 +1,30 @@
/*
* vim:cindent:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
+
+#include "config.h"
+
#ifndef _FILE_OFFSET_BITS
#define _FILE_OFFSET_BITS 64
#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
+# include <stddef.h>
+# ifdef __cplusplus
+extern "C"
+# endif
+void *alloca (size_t);
+#endif
+
#ifdef __linux__
#include <features.h>
#endif
@@ -36,7 +56,6 @@
#include <E_DBus.h>
#include <E_Hal.h>
#include <eina_stringshare.h>
-#include "config.h"
#define E_TYPEDEFS
#include "e_config_data.h"