hi all,
i have a C header file named by linux.h which contains the following section of code:
Code:
#define USBI_BUS_PRIVATE \
char filename[PATH_MAX + 1]; \
struct usbi_device *dev_by_num[USB_MAX_DEVICES_PER_BUS];
and another header file named by usbi.h which includes the linux.h header file and here is a piece of code:
Code:
struct usbi_bus {
struct list_head list;
pthread_mutex_t lock;
libusb_bus_id_t busid;
unsigned int busnum; /* Only needs to be unique */
struct usbi_backend_ops *ops;
int io_pattern;
struct list_head devices;
struct usbi_device *root;
USBI_BUS_PRIVATE
};
watch the red line.
when i try to compile this usb package i got the following error:
expected specifier-qualifier-list before 'USBI_BUS_PRIVATE'
can anyone please how to fix this error?
thanks in advance.