[vlc-devel] [PATCH] npapi: Changed files to be compilable by VC.

Rémi Denis-Courmont remi at remlab.net
Mon Nov 21 08:07:01 CET 2011


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.

So changing this is wrong.

-- 
Rémi Denis-Courmont
http://www.remlab.net/



More information about the vlc-devel mailing list