Add more include protection macros to give the user warnings when they try to manuall...
[pub/USBasp.git] / LUFA / Drivers / USB / HighLevel / StreamCallbacks.h
index c502330..3d30655 100644 (file)
 #ifndef __STREAMCALLBACK_H__\r
 #define __STREAMCALLBACK_H__\r
 \r
+       /* Preprocessor Checks: */\r
+               #if !defined(__INCLUDE_FROM_USB_DRIVER)\r
+                       #error Do not include this file directly. Include LUFA/Drivers/USB.h instead.\r
+               #endif\r
+               \r
        /* Public Interface - May be used in end-application: */\r
                /* Macros: */\r
                        /** Used with the Endpoint and Pipe stream functions as the callback function parameter, indicating that the stream\r