Re: gspca.h included twice in gspca_core.c

"Ing. Leonardo Scinto" <[email protected]>
Newsgroups gmane.linux.drivers.spca50x.devel
Message-ID <[email protected]>
Thanks for your help.

The kernel version on my Foxboard is Linux axis 2.6.15.

I use a flash image which contains spca5xx/LE drivers yet.

After your mails I downloaded the gspcav1-20071224 driver to compile 
them myself througth the SDK, but the file gspca.c doesn't exist and the 
make returns an error.

I checked also the rest of source code and I commented the include 
gspca.h in the decoder/gspcadecoder.h
Now I have only one inclusion of it.

Leonardo

> 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/
> _______________________________________________
> Spca50x-devs mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/spca50x-devs
>
>
>   


-- 
------------------------------------------
 Leonardo Scinto
 Aerospace Engineer
 Mailto: [email protected]

 Merlino Technology S.r.l.
 Via Tiengo snc
 82100 BENEVENTO - ITALY
 Phone: +39 0824 4817.11
 Fax: +39 0824 4817.30

In ottemperanza al TESTO UNICO PRIVACY (D.lgs. n. 196/2003), le ricordiamo che i dati anagrafici della sua azienda sono registrati all'interno dei nostri database aziendali a seguito di un suo esplicito consenso. La nostra informativa privacy, insieme all'elenco aggiornato dei responsabili e  i diritti dell'interessato, sono pubblicati sul nostro sito web www.merlinotechnology.com (nell'area privacy).

-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/spca50x-devs
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.