Web lists-archives.com

Re: [Spca50x-devs] gspca.h included twice in gspca_core.c




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 <Serge.A.S@xxxxxxxxx> 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/
_______________________________________________
Spca50x-devs mailing list
Spca50x-devs@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/spca50x-devs