Ecore: _ecore_thread_handler must not be defined if threads aren't supported
authorYouness Alaoui <kakaroto@kakaroto.homelinux.net>
Wed, 7 Sep 2011 06:58:10 +0000 (06:58 +0000)
committerYouness Alaoui <kakaroto@kakaroto.homelinux.net>
Wed, 7 Sep 2011 06:58:10 +0000 (06:58 +0000)
SVN revision: 63251

legacy/ecore/src/lib/ecore/ecore_thread.c

index c5c66a2..ddf77e0 100644 (file)
@@ -361,12 +361,15 @@ struct _Ecore_Pthread_Data
 };
 #endif
 
-static void _ecore_thread_handler(void *data __UNUSED__, void *buffer, unsigned int nbyte);
 
 static int _ecore_thread_count_max = 0;
 static int ECORE_THREAD_PIPE_DEL = 0;
 static Eina_Array *_ecore_thread_pipe = NULL;
 
+#ifdef EFL_HAVE_THREADS
+
+static void _ecore_thread_handler(void *data __UNUSED__, void *buffer, unsigned int nbyte);
+
 static Ecore_Pipe*
 _ecore_thread_pipe_get(void)
 {
@@ -376,7 +379,6 @@ _ecore_thread_pipe_get(void)
    return ecore_pipe_add(_ecore_thread_handler, NULL);
 }
 
-#ifdef EFL_HAVE_THREADS
 static int _ecore_thread_count = 0;
 
 static Ecore_Event_Handler *del_handler = NULL;