diff options
author | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2014-11-25 16:09:28 +0900 |
---|---|---|
committer | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2014-11-25 16:09:28 +0900 |
commit | 8d1b586b9041a1fa6c01f8800b821f914e50f715 (patch) | |
tree | 16564c0b75964ff27b16e5687052cae293e5601c | |
parent | 5bc509a0c0627bdb33366f26080835eb286f7195 (diff) | |
download | efl-8d1b586b9041a1fa6c01f8800b821f914e50f715.tar.gz |
ecore-x - xi2 - only compile functions when used by xi2
-rw-r--r-- | src/lib/ecore_x/xlib/ecore_x_xi2.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/ecore_x/xlib/ecore_x_xi2.c b/src/lib/ecore_x/xlib/ecore_x_xi2.c index 429473c40c..ae9ccc068e 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) |