aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/USB/Class/MIDI.h
diff options
context:
space:
mode:
Diffstat (limited to 'LUFA/Drivers/USB/Class/MIDI.h')
-rw-r--r--LUFA/Drivers/USB/Class/MIDI.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/LUFA/Drivers/USB/Class/MIDI.h b/LUFA/Drivers/USB/Class/MIDI.h
index a38c3d878..96b23efcb 100644
--- a/LUFA/Drivers/USB/Class/MIDI.h
+++ b/LUFA/Drivers/USB/Class/MIDI.h
@@ -56,6 +56,10 @@
/* Includes: */
#include "../HighLevel/USBMode.h"
+ #if defined(NO_STREAM_CALLBACKS)
+ #error The NO_STREAM_CALLBACKS compile time option cannot be used in projects using the library Class drivers.
+ #endif
+
#if defined(USB_CAN_BE_DEVICE)
#include "Device/MIDI.h"
#endif