Skip to content

Commit 2a8fe4b

Browse files
committed
Callback fiasco: always include Arduino.h before including Callback
1 parent 1dfae09 commit 2a8fe4b

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

cores/arduino/USB/PluggableUSBDevice.h

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
#ifndef PLUGGABLEUSBDEVICE_H
1919
#define PLUGGABLEUSBDEVICE_H
2020

21+
#include "Arduino.h"
22+
2123
/* These headers are included for child class. */
2224
#include "USBDescriptor.h"
2325
#include "USBDevice_Types.h"

cores/arduino/USB/USBCDC.h

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
#ifndef USBCDC_H
1919
#define USBCDC_H
2020

21+
#include "Arduino.h"
22+
2123
/* These headers are included for child class. */
2224
#include "USBDescriptor.h"
2325
#include "USBDevice_Types.h"

libraries/USBMSD/PluggableUSBMSD.h

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#define USBMSD_H
2020

2121
/* These headers are included for child class. */
22+
#include "Arduino.h"
2223
#include "USBDescriptor.h"
2324
#include "USBDevice_Types.h"
2425
#include "platform/Callback.h"

0 commit comments

Comments
 (0)