Re: gspca.h included twice in gspca_core.c

"JoJo jojo" <[email protected]>
Newsgroups gmane.linux.drivers.spca50x.devel
Message-ID <[email protected]>
i c

basically the standard allows multiple inclusions,
but for portability reasons (some compilers do not), and for consistency
(multiple different definitions make compilers complain) we continue to use it.

-JoJo

On Jan 22, 2008 11:54 AM, Serge A. Suchkov <[email protected]> wrote:
>
> > was goin' thru the sources
> >
> > gspca_core.c  includes decoder/gspcadecoder.h includes gspca.h
> > gspca_core.c  includes gspca.h again
> >
> > no need to include gspca.h twice in  gspca_core.c  right?
>
> See two first strings in gspca.h
>
> #ifndef SPCA50X_H
> #define SPCA50X_H
>
> it is usual practice in C coding style ...
>
>
>
> >
> > -JoJo
> >

>
>
>
> --
> Regards,
> Serge A. Suchkov
> --
> "That must be wonderful!  I don't understand it at all."

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.