From 3e749c31406c218668efb813853664ebe3e90304 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Mon, 1 Apr 2013 11:23:48 -0300 Subject: [PATCH] fw/include/atusb/ep0.h: protect also USB_DIR_IN and USB_DIR_OUT They're currently not defined by libusb, but since the kernel has them, they may eventually also end up in user space. --- atusb/fw/include/atusb/ep0.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/atusb/fw/include/atusb/ep0.h b/atusb/fw/include/atusb/ep0.h index bd615d3..d21878f 100644 --- a/atusb/fw/include/atusb/ep0.h +++ b/atusb/fw/include/atusb/ep0.h @@ -46,8 +46,13 @@ #define USB_TYPE_VENDOR 0x40 #endif +#ifndef USB_DIR_IN #define USB_DIR_IN 0x80 +#endif + +#ifndef USB_DIR_OUT #define USB_DIR_OUT 0x00 +#endif #define ATUSB_FROM_DEV(req) (ATUSB_REQ_FROM_DEV | (req) << 8) #define ATUSB_TO_DEV(req) (ATUSB_REQ_TO_DEV | (req) << 8)