[Mingw-w64-public] IsEqualGUID

2012-08-24 Thread Roger Pack
I don't know if this is a bug, or even the right forum, but this line:

IsEqualGUID(FORMAT_WaveFormatEx, FORMAT_WaveFormatEx);

using cross compiled mingw-w64, in a .c file, seems to yield this:

libavdevice/dshow.c:607:3: error: incompatible type for argument 1 of ‘memcmp’
In file included from ./libavutil/common.h:36:0,
 from ./libavutil/avutil.h:274,
 from ./libavutil/opt.h:31,
 from libavdevice/dshow.c:23:
/home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/mingw-w64-i686/lib/gcc/i686-w64-mingw32/4.7.1/../../../../i686-w64-mingw32/include/string.h:40:15:
note: expected ‘const void *’ but argument is of type ‘GUID’
libavdevice/dshow.c:607:3: error: incompatible type for argument 2 of ‘memcmp’
In file included from ./libavutil/common.h:36:0,
 from ./libavutil/avutil.h:274,
 from ./libavutil/opt.h:31,
 from libavdevice/dshow.c:23:
/home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/mingw-w64-i686/lib/gcc/i686-w64-mingw32/4.7.1/../../../../i686-w64-mingw32/include/string.h:40:15:
note: expected ‘const void *’ but argument is of type ‘GUID’

Can anybody else reproduce this?
It may be expected...
Thanks.
-r

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] IsEqualGUID

2012-08-24 Thread Jacek Caban
On 08/24/12 18:24, Roger Pack wrote:
 I don't know if this is a bug, or even the right forum, but this line:

 IsEqualGUID(FORMAT_WaveFormatEx, FORMAT_WaveFormatEx);

The correct form is probably:
IsEqualGUID(FORMAT_WaveFormatEx, FORMAT_WaveFormatEx);
Your form would be valid in C++, but not in C.

Jacek

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public