[common] Avoid IAR compiling error on USB HOST stack

- Avoided using a structure with zero-length array as a field in another
  structure when IAR toolchain is used.

Signed-off-by: helloeagleyang <helloeagleyang@163.com>
This commit is contained in:
helloeagleyang
2023-09-16 12:06:56 +08:00
committed by sakumisu
parent e6193bd131
commit d11260ef67

View File

@@ -59,7 +59,11 @@ struct usbh_urb {
uint32_t start_frame;
usbh_complete_callback_t complete;
void *arg;
#if defined(__ICCARM__) || defined(__ICCRISCV__) || defined(__ICCRX__)
struct usbh_iso_frame_packet *iso_packet;
#else
struct usbh_iso_frame_packet iso_packet[0];
#endif
};
/**