raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=8d1b586b9041a1fa6c01f8800b821f914e50f715

commit 8d1b586b9041a1fa6c01f8800b821f914e50f715
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Tue Nov 25 16:09:28 2014 +0900

    ecore-x - xi2 - only compile functions when used by xi2
---
 src/lib/ecore_x/xlib/ecore_x_xi2.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/lib/ecore_x/xlib/ecore_x_xi2.c 
b/src/lib/ecore_x/xlib/ecore_x_xi2.c
index 429473c..ae9ccc0 100644
--- a/src/lib/ecore_x/xlib/ecore_x_xi2.c
+++ b/src/lib/ecore_x/xlib/ecore_x_xi2.c
@@ -454,13 +454,15 @@ _ecore_x_input_multi_handler(XEvent *xevent)
 #endif /* ifdef ECORE_XI2 */
 }
 
-static int
+#ifdef ECORE_XI2
+static unsigned int
 count_bits(long n)
 {
    unsigned int c; /* c accumulates the total bits set in v */
    for (c = 0; n; c++) n &= n - 1; /* clear the least significant bit set */
    return c;
 }
+#endif
 
 void
 _ecore_x_input_axis_handler(XEvent *xevent, XIDeviceInfo *dev)
@@ -574,6 +576,7 @@ _ecore_x_input_axis_handler(XEvent *xevent, XIDeviceInfo 
*dev)
 #endif /* ifdef ECORE_XI2 */
 }
 
+#ifdef ECORE_XI2
 static XIDeviceInfo *
 _ecore_x_input_device_lookup(int deviceid)
 {
@@ -590,6 +593,7 @@ _ecore_x_input_device_lookup(int deviceid)
      }
    return NULL;
 }
+#endif
 
 void
 _ecore_x_input_handler(XEvent *xevent)

-- 


Reply via email to