Add more include protection macros to give the user warnings when they try to manuall...
[pub/USBasp.git] / LUFA / Drivers / USB / Class / Common / Printer.h
index ea6f1ab..06ec0bb 100644 (file)
        /* Enable C linkage for C++ Compilers: */\r
                #if defined(__cplusplus)\r
                        extern "C" {\r
-               #endif\r
+               #endif
 \r
+       /* Preprocessor Checks: */\r
+               #if !defined(__INCLUDE_FROM_PRINTER_DRIVER)\r
+                       #error Do not include this file directly. Include LUFA/Drivers/Class/Printer.h instead.\r
+               #endif\r
+               \r
        /* Macros: */\r
                /** Port status mask for a printer device, indicating that an error has *not* occurred. */\r
                #define PRNT_PORTSTATUS_NOTERROR    (1 << 3)\r