eina: correct guard of thread code.
authorcedric <cedric>
Tue, 9 Aug 2011 08:46:29 +0000 (08:46 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 9 Aug 2011 08:46:29 +0000 (08:46 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@62238 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/eina_main.c

index 78adb93..c7ed73c 100644 (file)
@@ -214,9 +214,12 @@ eina_init(void)
         return 0;
      }
 
-#if !(defined(_WIN32_WCE)) && !(defined(_WIN32))
+#ifdef EINA_HAVE_THREADS
+# if !(defined(_WIN32_WCE)) && !(defined(_WIN32))
    _eina_main_loop = pthread_self();
+# endif
 #endif
+
 #ifdef EINA_HAVE_DEBUG_THREADS
    pthread_mutex_init(&_eina_tracking_lock, NULL);