At Sun, 06 Jun 2004 05:30:23 +0900, GOTO Masanori wrote: > > -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 > ~~~~~ > > This is another -ansi things. I wonder why KDE guys want to use > -ansi because C99 is the new standard C these days. > > > In file included from /usr/include/linux/videodev.h:8, > > from QCamV4L.h:7, > > from QCamV4L.cpp:14, > > from libwebcam_linux_la.all_cpp.cpp:4 > > /usr/include/linux/videodev2.h:432: error: syntax error before `;' token > > /usr/include/linux/videodev2.h:500: error: 'v4l2_std_id' is used as a type, but > > is not defined as a type. > > /usr/include/linux/videodev2.h:518: error: syntax error before `;' token > > /usr/include/linux/videodev2.h:555: error: syntax error before `;' token > > At least on i386, the following patch should fix this problem: > > --- include/asm-i386/types.h 2004-06-06 05:22:54.000000000 +0900 > +++ include/asm-i386/types.h 2004-06-06 05:22:56.000000000 +0900 > @@ -19,9 +19,9 @@ > typedef __signed__ int __s32; > typedef unsigned int __u32; > > -#if defined(__GNUC__) && !defined(__STRICT_ANSI__) > -typedef __signed__ long long __s64; > -typedef unsigned long long __u64; > +#if defined(__GNUC__) > +__extension__ typedef __signed__ long long __s64; > +__extension__ typedef unsigned long long __u64; > #endif > > #endif /* __ASSEMBLY__ */ > > > I may put this patch into lkh not only for i386 but also for other > archs. No objections?
I've put it in. Regards, -- gotom -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]