* Put definition of alloca before any standard header

files according to the doc
 * define _GNU_SOURCE before the inclusion of alloca
   as features.h inclued by alloca.h, defines some
   macros according to _GNU_SOURCE.



SVN revision: 41940
This commit is contained in:
Vincent Torri 2009-08-23 09:18:14 +00:00
parent 581556e6d2
commit 6e7aecc7c0
3 changed files with 25 additions and 22 deletions

View File

@ -28,10 +28,6 @@
# include "config.h"
#endif
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#ifdef HAVE_ALLOCA_H
# include <alloca.h>
#elif defined __GNUC__
@ -49,6 +45,10 @@ extern "C"
void *alloca (size_t);
#endif
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "eina_benchmark.h"
#include "eina_inlist.h"
#include "eina_counter.h"

View File

@ -20,20 +20,9 @@
# include <config.h>
#endif
#include <string.h>
#ifndef _WIN32
# define _GNU_SOURCE
# include <sys/types.h>
# include <sys/stat.h>
# include <unistd.h>
# include <dirent.h>
#else
# define WIN32_LEAN_AND_MEAN
# include <windows.h>
# undef WIN32_LEAN_AND_MEAN
# include <Evil.h>
#endif /* _WIN2 */
#endif
#ifdef HAVE_ALLOCA_H
# include <alloca.h>
@ -52,6 +41,20 @@ extern "C"
void *alloca (size_t);
#endif
#include <string.h>
#ifndef _WIN32
# include <sys/types.h>
# include <sys/stat.h>
# include <unistd.h>
# include <dirent.h>
#else
# define WIN32_LEAN_AND_MEAN
# include <windows.h>
# undef WIN32_LEAN_AND_MEAN
# include <Evil.h>
#endif /* _WIN2 */
#ifndef _WIN32
# define PATH_DELIM '/'
#else

View File

@ -21,14 +21,9 @@
#endif
#ifdef HAVE_DLADDR
#define _GNU_SOURCE
# define _GNU_SOURCE
#endif
#include <stdio.h>
#include <sys/types.h>
#include <dirent.h>
#include <string.h>
#ifdef HAVE_ALLOCA_H
# include <alloca.h>
#elif defined __GNUC__
@ -46,6 +41,11 @@ extern "C"
void *alloca (size_t);
#endif
#include <stdio.h>
#include <sys/types.h>
#include <dirent.h>
#include <string.h>
#include <dlfcn.h>
#ifdef HAVE_EVIL