From 9914cd1d6ca7f968a4498a7b1bb779f701356b9e Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Tue, 7 Mar 2023 14:23:49 +0000 Subject: [PATCH] usb: add missing stdint.h includes Some class headers were not including stdint.h themselves, despite relying on those types, and relying on them already being included earlier elsewhere. Consistently include stdint.h where it's used. Fixes: https://github.com/libopencm3/libopencm3/issues/1471 Signed-off-by: Karl Palsson --- include/libopencm3/usb/dfu.h | 2 ++ include/libopencm3/usb/msc.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/include/libopencm3/usb/dfu.h b/include/libopencm3/usb/dfu.h index 1d0fc3f1..bf9139e1 100644 --- a/include/libopencm3/usb/dfu.h +++ b/include/libopencm3/usb/dfu.h @@ -38,6 +38,8 @@ LGPL License Terms @ref lgpl_license #ifndef __DFU_H #define __DFU_H +#include + #define USB_CLASS_DFU 0xFE enum dfu_req { diff --git a/include/libopencm3/usb/msc.h b/include/libopencm3/usb/msc.h index cf9c54a6..2c52bb02 100644 --- a/include/libopencm3/usb/msc.h +++ b/include/libopencm3/usb/msc.h @@ -40,6 +40,8 @@ LGPL License Terms @ref lgpl_license #ifndef __MSC_H #define __MSC_H +#include + typedef struct _usbd_mass_storage usbd_mass_storage; /* Definitions of Mass Storage Class from: