summaryrefslogtreecommitdiff
path: root/legacy/eet/src/lib/eet_connection.c
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2010-04-03 05:29:44 +0000
committerVincent Torri <vincent.torri@gmail.com>2010-04-03 05:29:44 +0000
commita8cc2008705d67800b615fb7e876f52215f788d9 (patch)
treee0febc818d915cb38442d91635b9827dc0cae9bb /legacy/eet/src/lib/eet_connection.c
parentc20cd7715ab176366b3b7b92eeb2584080789ad1 (diff)
* update Visual Studio project files
* declare alloca in eet_connection.c * remove the definition of __UNUSED__ (already done in config.h) * reorganize a bit the inclusion of header files so that the code is a bit more consistent SVN revision: 47719
Diffstat (limited to 'legacy/eet/src/lib/eet_connection.c')
-rw-r--r--legacy/eet/src/lib/eet_connection.c20
1 files changed, 16 insertions, 4 deletions
diff --git a/legacy/eet/src/lib/eet_connection.c b/legacy/eet/src/lib/eet_connection.c
index ed90d75bcb..99d1ff16f4 100644
--- a/legacy/eet/src/lib/eet_connection.c
+++ b/legacy/eet/src/lib/eet_connection.c
@@ -6,10 +6,21 @@
6# include <config.h> 6# include <config.h>
7#endif 7#endif
8 8
9#if HAVE___ATTRIBUTE__ 9#ifdef HAVE_ALLOCA_H
10# define __UNUSED__ __attribute__((unused)) 10# include <alloca.h>
11#elif defined __GNUC__
12# define alloca __builtin_alloca
13#elif defined _AIX
14# define alloca __alloca
15#elif defined _MSC_VER
16# include <malloc.h>
17# define alloca _alloca
11#else 18#else
12# define __UNUSED__ 19# include <stddef.h>
20# ifdef __cplusplus
21extern "C"
22# endif
23void *alloca (size_t);
13#endif 24#endif
14 25
15#include <string.h> 26#include <string.h>
@@ -19,9 +30,10 @@
19# include <netinet/in.h> 30# include <netinet/in.h>
20#endif 31#endif
21 32
22#if defined(_WIN32) && ! defined(__CEGCC__) 33#ifdef _WIN32
23# include <winsock2.h> 34# include <winsock2.h>
24#endif 35#endif
36
25#include <Eina.h> 37#include <Eina.h>
26 38
27#include "Eet.h" 39#include "Eet.h"