cedric pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=e131580aba4b498e4a1cb9b53240b595ecf0fa67
commit e131580aba4b498e4a1cb9b53240b595ecf0fa67 Author: Cedric BAIL <cedric.b...@samsung.com> Date: Mon Dec 16 17:03:10 2013 +0900 emotion: fix Windows compilation. --- src/lib/emotion/emotion_webcam.c | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/src/lib/emotion/emotion_webcam.c b/src/lib/emotion/emotion_webcam.c index 3cf11b2..dff58e7 100644 --- a/src/lib/emotion/emotion_webcam.c +++ b/src/lib/emotion/emotion_webcam.c @@ -220,19 +220,6 @@ _emotion_process_webcam(void *data) } static void -_emotion_enumerate_all_webcams(void) -{ - Eina_List *devices; - - if (_emotion_webcams->init) return ; - devices = eeze_udev_find_by_type(EEZE_UDEV_TYPE_V4L, NULL); - - _emotion_webcams->check_list = devices; - _emotion_webcams->idler = ecore_idler_add(_emotion_process_webcam, - _emotion_webcams); -} - -static void _emotion_eeze_events(const char *syspath, Eeze_Udev_Event ev, void *data EINA_UNUSED, @@ -269,6 +256,22 @@ _emotion_eeze_events(const char *syspath, #endif +static void +_emotion_enumerate_all_webcams(void) +{ + Eina_List *devices; + +#ifdef HAVE_EEZE + if (_emotion_webcams->init) return ; + devices = eeze_udev_find_by_type(EEZE_UDEV_TYPE_V4L, NULL); + + _emotion_webcams->check_list = devices; + _emotion_webcams->idler = ecore_idler_add(_emotion_process_webcam, + _emotion_webcams); +#endif +} + + Eina_Bool emotion_webcam_init(void) { EMOTION_WEBCAM_UPDATE = ecore_event_type_new(); --