From: David Schleef Date: Mon, 13 Aug 2001 10:26:57 +0000 (+0000) Subject: Add error to check if included directly X-Git-Tag: r0_7_61~178 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bf1524d1951ba0803ed2ae361ad928481a5b5323;p=comedi.git Add error to check if included directly --- diff --git a/include/linux/comedi_rt.h b/include/linux/comedi_rt.h index 5d4a030c..bcea825c 100644 --- a/include/linux/comedi_rt.h +++ b/include/linux/comedi_rt.h @@ -24,6 +24,10 @@ #ifndef _COMEDI_RT_H #define _COMEDI_RT_H +#ifndef _COMEDIDEV_H +#error comedi_rt.h should only be included by comedidev.h +#endif + #include #include #include @@ -31,7 +35,6 @@ #include #include #include -#include #ifdef CONFIG_COMEDI_RT