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

Rafaël Carré funman at videolan.org
Mon Nov 21 08:17:40 CET 2011


Le Mon, 21 Nov 2011 08:07:01 +0100,
Rémi Denis-Courmont <remi at remlab.net> a écrit :

> 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.

I dont think Microsoft claim C99 compliance at all although some features may be supported

Also this is C++ ;)

-- 
Rafaël Carré



More information about the vlc-devel mailing list