diff --git a/src/bpf/hid_bpf_helpers.h b/src/bpf/hid_bpf_helpers.h
index 8f226f6e886b56e537fd1032c0f786e3412ed556..3ba24d125a081be4b09d88be4a2afcdc6b8c5f00 100644
--- a/src/bpf/hid_bpf_helpers.h
+++ b/src/bpf/hid_bpf_helpers.h
@@ -66,6 +66,7 @@ extern int hid_bpf_hw_request(struct hid_bpf_ctx *ctx,
 #define HID_VID_ANY				0x0000
 #define HID_PID_ANY				0x0000
 
+#define BIT(n) (1UL << (n))
 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
 
 /* Helper macro to convert (foo, __LINE__)  into foo134 so we can use __LINE__ for
diff --git a/src/bpf/stable/10-XPPen__Artist24.bpf.c b/src/bpf/stable/10-XPPen__Artist24.bpf.c
index 16647848c881b928d40bc9626c9e8c7ba43dfb7a..6836b60e4bd51c59c2de8b8293f557e0c63aa026 100644
--- a/src/bpf/stable/10-XPPen__Artist24.bpf.c
+++ b/src/bpf/stable/10-XPPen__Artist24.bpf.c
@@ -78,8 +78,6 @@ static const __u8 fixed_rdesc[] = {
 	0xc0,                          // End Collection                      106
 };
 
-#define BIT(n) (1UL << n)
-
 #define TIP_SWITCH		BIT(0)
 #define BARREL_SWITCH		BIT(1)
 #define ERASER			BIT(2)