aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/Platform.h
diff options
context:
space:
mode:
Diffstat (limited to 'cores/arduino/Platform.h')
-rw-r--r--cores/arduino/Platform.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/cores/arduino/Platform.h b/cores/arduino/Platform.h
index 6a1f340..8b8f742 100644
--- a/cores/arduino/Platform.h
+++ b/cores/arduino/Platform.h
@@ -14,8 +14,10 @@ typedef unsigned long u32;
#include "Arduino.h"
-#include "USBDesc.h"
-#include "USBCore.h"
-#include "USBAPI.h"
+#if defined(USBCON)
+ #include "USBDesc.h"
+ #include "USBCore.h"
+ #include "USBAPI.h"
+#endif /* if defined(USBCON) */
#endif