From 40fb4504f781ae7d807f3b3906c89b4904935d46 Mon Sep 17 00:00:00 2001 From: =?utf8?q?K=C3=A9vin=20THIERRY?= Date: Thu, 3 Apr 2014 08:55:34 +0200 Subject: [PATCH] Build in both X11 and Wayland environments MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Replaces incorrect "#if" with "#ifdef". Change-Id: I5cc2a2a75476031cabac3c9315efe1c428bc0669 Signed-off-by: Kévin THIERRY --- frontend/ui/src/rpm-homeview.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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"); -- 2.7.4