fix header inclusion

SVN revision: 45655
This commit is contained in:
Vincent Torri 2010-01-28 10:03:31 +00:00
parent c3b33835ea
commit 4da59fea04
3 changed files with 13 additions and 5 deletions

View File

@ -294,6 +294,11 @@
#include <string.h>
#include <stdlib.h>
#include <fnmatch.h>
#include <assert.h>
#ifdef EFL_HAVE_PTHREAD
# include <pthread.h>
#endif
#ifdef HAVE_EVIL
# include <Evil.h>
@ -307,8 +312,6 @@
#include "eina_safety_checks.h"
#include "eina_log.h"
#include <assert.h>
/* TODO
* + printing logs to stdout or stderr can be implemented
* using a queue, useful for multiple threads printing
@ -359,7 +362,6 @@ static Eina_Bool _abort_on_critical = EINA_FALSE;
static int _abort_level_on_critical = EINA_LOG_LEVEL_CRITICAL;
#ifdef EFL_HAVE_PTHREAD
#include <pthread.h>
static Eina_Bool _threads_enabled = EINA_FALSE;
static pthread_t _main_thread;

View File

@ -22,6 +22,10 @@
# include "config.h"
#endif
#ifdef EFL_HAVE_PTHREAD
# include <pthread.h>
#endif
#include "eina_config.h"
#include "eina_private.h"
#include "eina_types.h"
@ -64,7 +68,6 @@ static int _eina_log_dom = -1;
#define DBG(...) EINA_LOG_DOM_DBG(_eina_log_dom, __VA_ARGS__)
#ifdef EFL_HAVE_PTHREAD
#include <pthread.h>
static Eina_Bool _threads_activated = EINA_FALSE;
static pthread_mutex_t _mutex = PTHREAD_MUTEX_INITIALIZER;
#define LOCK() if(_threads_activated) pthread_mutex_lock(&_mutex);

View File

@ -70,6 +70,10 @@
#include <stdio.h>
#include <string.h>
#ifdef EFL_HAVE_PTHREAD
# include <pthread.h>
#endif
#ifdef HAVE_EVIL
# include <Evil.h>
#endif
@ -177,7 +181,6 @@ static int _eina_stringshare_log_dom = -1;
#ifdef EFL_HAVE_PTHREAD
#include <pthread.h>
static Eina_Bool _stringshare_threads_activated = EINA_FALSE;
//string < 4
static pthread_mutex_t _mutex_small = PTHREAD_MUTEX_INITIALIZER;