From: Kévin THIERRY Date: Thu, 3 Apr 2014 06:55:34 +0000 (+0200) Subject: Build in both X11 and Wayland environments X-Git-Tag: submit/tizen_mobile/20141120.000000 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Ftags%2Fsubmit%2Ftizen_mobile%2F20141120.000000;p=platform%2Fcore%2Fbase%2Frpm-installer.git Build in both X11 and Wayland environments Replaces incorrect "#if" with "#ifdef". Change-Id: I5cc2a2a75476031cabac3c9315efe1c428bc0669 Signed-off-by: Kévin THIERRY --- diff --git a/frontend/ui/src/rpm-homeview.c b/frontend/ui/src/rpm-homeview.c index a34e674..0a127b1 100755 --- a/frontend/ui/src/rpm-homeview.c +++ b/frontend/ui/src/rpm-homeview.c @@ -22,10 +22,10 @@ #include #include -#if HAVE_X11 +#ifdef HAVE_X11 #include #endif -#if HAVE_WAYLAND +#ifdef HAVE_WAYLAND #include #include #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");