[vlc-devel] [PATCH] npapi: Changed files to be compilable by VC.
Sergey Radionov
rsatom at gmail.com
Mon Nov 21 08:35:12 CET 2011
21.11.2011 14:07, Rémi Denis-Courmont пишет:
> On Mon, 21 Nov 2011 12:37:11 +0700, Sergey Radionov<rsatom at gmail.com>
> wrote:
>> +#ifdef _MSC_VER
>> +const NPUTF8 * const LibvlcDeinterlaceNPObject::propertyNames[] = {
>> + ""
>> +};
>> +const int LibvlcDeinterlaceNPObject::propertyCount=0;
>> +#else
>> const NPUTF8 * const LibvlcDeinterlaceNPObject::propertyNames[] = {
>> };
>> enum LibvlcDeinterlaceNPObjectPropertyIds {
>> };
>> COUNTNAMES(LibvlcDeinterlaceNPObject,propertyCount,propertyNames);
>> +#endif //_MSC_VER
>>
>> problem is that VC not able create zero length arrays.
>
> This is not a zero-length array. This is an array with unspecified length.
>
> This is defined in C99 section 6.7.8 §22 and §25.
This is C++ file, not C.
Anyway, Visual C++ give following error:
*e:\git\npapi-vlc\npapi\control\npolibvlc.cpp(1877) : error C2466: cannot allocate an array of
constant size 0*
>
> So changing this is wrong.
>
--
With best wishes,
Sergey Radionov
More information about the vlc-devel
mailing list