git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@45655
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
#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>
#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
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;
# include "config.h"
#endif
+#ifdef EFL_HAVE_PTHREAD
+# include <pthread.h>
+#endif
+
#include "eina_config.h"
#include "eina_private.h"
#include "eina_types.h"
#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);
#include <stdio.h>
#include <string.h>
+#ifdef EFL_HAVE_PTHREAD
+# include <pthread.h>
+#endif
+
#ifdef HAVE_EVIL
# include <Evil.h>
#endif
#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;