diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2009-11-19 16:25:48 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-11-26 12:26:41 +1000 |
commit | a20fbdd32d14da17933d7bf69fa8542f51febfda (patch) | |
tree | f1f219ee0fe29b56507c75a8eb6e2b00fe5ae9c4 /src/xf86Wacom.h | |
parent | a653c3419f7c5854d6fabaf9c4a70ee4308e99dd (diff) | |
download | xf86-input-wacom-a20fbdd32d14da17933d7bf69fa8542f51febfda.tar.gz |
Move the ARRAY_SIZE macro into a header file, it's useful elsewhere.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src/xf86Wacom.h')
-rw-r--r-- | src/xf86Wacom.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xf86Wacom.h b/src/xf86Wacom.h index 3b16484..b0e3f06 100644 --- a/src/xf86Wacom.h +++ b/src/xf86Wacom.h @@ -32,6 +32,8 @@ #include <asm/types.h> #include <linux/input.h> +#define ARRAY_SIZE(a) (sizeof(a)/sizeof((a)[0])) + #define MAX_USB_EVENTS 32 /* max number of input events to read in one read call */ |