Ecore ecore_file:
authorcaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 24 Feb 2011 07:52:25 +0000 (07:52 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 24 Feb 2011 07:52:25 +0000 (07:52 +0000)
fix compilation when ecore_con and curl are not available

When ecore_con and curl are not available, a callback using them
is still compiled.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@57293 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

ChangeLog
src/lib/ecore_file/ecore_file_download.c

index 8b9d474..586b151 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -54,7 +54,7 @@
        * Add get calls in ecore_imf for ecore_imf_context_canvas_get() and
         ecore_imf_context_window_get().
 
-2011-02-21 Raoul Hecky 
+2011-02-21 Raoul Hecky
 
        * Remove 300 second timeout so large downloads work in ecore_con.
 
@@ -64,3 +64,7 @@
         on fork. Have it detecti this on next monitor add and re-init the
         inotify fd and fd handler.
 
+2011-02-24 Vincent Torri
+
+       * Ecore_File: fix compilation when ecore_con and curl are not
+       available
index e8d806b..ab8294a 100644 (file)
@@ -78,6 +78,8 @@ ecore_file_download_shutdown(void)
 #endif /* BUILD_ECORE_CON */
 }
 
+#ifdef BUILD_ECORE_CON
+# ifdef HAVE_CURL
 static Eina_Bool
 _ecore_file_download_headers_foreach_cb(const Eina_Hash *hash __UNUSED__, const void *key, void *data, void *fdata)
 {
@@ -86,6 +88,8 @@ _ecore_file_download_headers_foreach_cb(const Eina_Hash *hash __UNUSED__, const
 
    return EINA_TRUE;
 }
+# endif
+#endif
 
 static Eina_Bool
 _ecore_file_download(const char *url,