summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-11-25 16:09:28 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-11-25 16:09:28 +0900
commit8d1b586b9041a1fa6c01f8800b821f914e50f715 (patch)
tree16564c0b75964ff27b16e5687052cae293e5601c /src
parent5bc509a0c0627bdb33366f26080835eb286f7195 (diff)
ecore-x - xi2 - only compile functions when used by xi2
Diffstat (limited to 'src')
-rw-r--r--src/lib/ecore_x/xlib/ecore_x_xi2.c6
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)
454#endif /* ifdef ECORE_XI2 */ 454#endif /* ifdef ECORE_XI2 */
455} 455}
456 456
457static int 457#ifdef ECORE_XI2
458static unsigned int
458count_bits(long n) 459count_bits(long n)
459{ 460{
460 unsigned int c; /* c accumulates the total bits set in v */ 461 unsigned int c; /* c accumulates the total bits set in v */
461 for (c = 0; n; c++) n &= n - 1; /* clear the least significant bit set */ 462 for (c = 0; n; c++) n &= n - 1; /* clear the least significant bit set */
462 return c; 463 return c;
463} 464}
465#endif
464 466
465void 467void
466_ecore_x_input_axis_handler(XEvent *xevent, XIDeviceInfo *dev) 468_ecore_x_input_axis_handler(XEvent *xevent, XIDeviceInfo *dev)
@@ -574,6 +576,7 @@ _ecore_x_input_axis_handler(XEvent *xevent, XIDeviceInfo *dev)
574#endif /* ifdef ECORE_XI2 */ 576#endif /* ifdef ECORE_XI2 */
575} 577}
576 578
579#ifdef ECORE_XI2
577static XIDeviceInfo * 580static XIDeviceInfo *
578_ecore_x_input_device_lookup(int deviceid) 581_ecore_x_input_device_lookup(int deviceid)
579{ 582{
@@ -590,6 +593,7 @@ _ecore_x_input_device_lookup(int deviceid)
590 } 593 }
591 return NULL; 594 return NULL;
592} 595}
596#endif
593 597
594void 598void
595_ecore_x_input_handler(XEvent *xevent) 599_ecore_x_input_handler(XEvent *xevent)