Build in both X11 and Wayland environments 35/18935/1 accepted/tizen_3.0.2014.q3_common accepted/tizen_3.0.m14.3_ivi accepted/tizen_3.0_ivi accepted/tizen_generic accepted/tizen_ivi accepted/tizen_ivi_panda tizen_3.0.2014.q3_common tizen_3.0.2014.q4_common tizen_3.0.2015.q1_common tizen_3.0.m14.2_ivi tizen_3.0.m14.3_ivi tizen_3.0_ivi accepted/tizen/generic/20140408.111215 accepted/tizen/ivi/20140409.182445 accepted/tizen/ivi/panda/20140408.203045 submit/tizen/20140408.111135 submit/tizen_mobile/20141120.000000 tizen_3.0.2014.q3_common_release tizen_3.0.m14.2_ivi_release tizen_3.0.m14.3_ivi_release tizen_3.0_ivi_release
authorKévin THIERRY <kevin.thierry@open.eurogiciel.org>
Thu, 3 Apr 2014 06:55:34 +0000 (08:55 +0200)
committerKévin THIERRY <kevin.thierry@open.eurogiciel.org>
Thu, 3 Apr 2014 06:55:34 +0000 (08:55 +0200)
Replaces incorrect "#if" with "#ifdef".

Change-Id: I5cc2a2a75476031cabac3c9315efe1c428bc0669
Signed-off-by: Kévin THIERRY <kevin.thierry@open.eurogiciel.org>
frontend/ui/src/rpm-homeview.c

index a34e674..0a127b1 100755 (executable)
 
 #include <appcore-efl.h>
 #include <pthread.h>
-#if HAVE_X11
+#ifdef HAVE_X11
 #include <Ecore_X.h>
 #endif
-#if HAVE_WAYLAND
+#ifdef HAVE_WAYLAND
 #include <Ecore.h>
 #include <Ecore_Wayland.h>
 #endif
@@ -174,7 +174,7 @@ Eina_Bool _ri_init_appdata(struct appdata *user_data)
        elm_win_alpha_set(user_data->win_main, EINA_TRUE);
        elm_win_borderless_set(user_data->win_main, EINA_TRUE);
        elm_win_raise(user_data->win_main);
-#if HAVE_X11
+#ifdef HAVE_X11
        ecore_x_window_geometry_get(ecore_x_window_root_get
                                        (ecore_x_window_focus_get()), &x, &y, &w,
                                        &h);
@@ -183,7 +183,7 @@ Eina_Bool _ri_init_appdata(struct appdata *user_data)
                                        ECORE_X_ATOM_E_ILLUME_ROTATE_ROOT_ANGLE,
                                        ECORE_X_ATOM_CARDINAL, 32,
                                        &prop_data, &count);
-#elseif HAVE_WAYLAND /* TO_DO_WAYLAND */
+#else /* HAVE_WAYLAND */ /* TO_DO_WAYLAND */
        _d_msg(DEBUG_INFO, "Operation not supported in a pure Wayland\
                environment. To do: replace the X11 dependant functions with\
                 Wayland compatible ones.\n");