ecore_input: Fix build error on Windows and MacOS 59/147859/2
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Wed, 6 Sep 2017 02:36:14 +0000 (11:36 +0900)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Wed, 6 Sep 2017 06:51:00 +0000 (06:51 +0000)
Change-Id: I34a708b1b7c94e024e0abd1d58a58ea703b44d3c

src/lib/ecore_input/ecore_input.c

index ad0917a..72a9a6b 100644 (file)
@@ -65,9 +65,13 @@ ecore_event_init(void)
    ECORE_EVENT_JOYSTICK = ecore_event_type_new();
 
    //TIZEN_ONLY(20170307) Remove warning message
+#ifndef _WIN32
+#ifndef __APPLE__
    #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
    ecore_input_joystick_init();
    #pragma GCC diagnostic pop
+#endif
+#endif
    //
 
    return _ecore_event_init_count;
@@ -94,9 +98,13 @@ ecore_event_shutdown(void)
    ECORE_EVENT_DETENT_ROTATE = 0; //TIZEN ONLY
    ECORE_EVENT_JOYSTICK = 0;
    //TIZEN_ONLY(20170307) Remove warning message
+#ifndef _WIN32
+#ifndef __APPLE__
    #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
    ecore_input_joystick_shutdown();
    #pragma GCC diagnostic pop
+#endif
+#endif
    //
    eina_log_domain_unregister(_ecore_input_log_dom);
    _ecore_input_log_dom = -1;