struct libusb_device_descriptor device_descriptor;
int attached;
- unsigned char os_priv[0];
+ unsigned char os_priv
+#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)
+ [] /* valid C99 code */
+#else
+ [0] /* non-standard, but usually working code */
+#endif
+ ;
};
struct libusb_device_handle {
struct list_head list;
struct libusb_device *dev;
- unsigned char os_priv[0];
+ unsigned char os_priv
+#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)
+ [] /* valid C99 code */
+#else
+ [0] /* non-standard, but usually working code */
+#endif
+ ;
};
enum {
struct discovered_devs {
size_t len;
size_t capacity;
- struct libusb_device *devices[0];
+ struct libusb_device *devices
+#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)
+ [] /* valid C99 code */
+#else
+ [0] /* non-standard, but usually working code */
+#endif
+ ;
};
struct discovered_devs *discovered_devs_append(