webmas...@opensc-project.org wrote: > Revision: 4213 > Author: ludovic.rousseau > Date: 2010-04-02 14:08:22 +0000 (Fri, 02 Apr 2010) > > Log Message: > ----------- > Use explict field names in the static initialisation to make it more > robust to code change > > Fix > card-myeid.c:44: warning: missing initializer > card-myeid.c:44: warning: (near initialization for > ?\226?\128?\152myeid_drv.atr_map?\226?\128?\153) > > Modified Paths: > -------------- > trunk/src/libopensc/card-myeid.c > > Modified: trunk/src/libopensc/card-myeid.c > =================================================================== > --- trunk/src/libopensc/card-myeid.c 2010-04-02 13:57:30 UTC (rev 4212) > +++ trunk/src/libopensc/card-myeid.c 2010-04-02 14:08:22 UTC (rev 4213) > @@ -38,9 +38,12 @@ > > static struct sc_card_operations myeid_ops; > static struct sc_card_driver myeid_drv = { > - "MyEID cards with PKCS#15 applet", > - "myeid", > - &myeid_ops > + .name = "MyEID cards with PKCS#15 applet", >
It seems that Visual Studio do not yet supports some of the C99 features that are actually used in OpenSC sources. When compiling with Visual Studio 9.0 I have an error: card-myeid.c(41) : error C2059: syntax error : '.' > + .short_name = "myeid", > + .ops = &myeid_ops, > + .atr_map = NULL, > + .natrs = 0, > + .dll = NULL > }; > > static const char *myeid_atrs[] = { > > > _______________________________________________ > opensc-commits mailing list > opensc-comm...@lists.opensc-project.org > http://www.opensc-project.org/mailman/listinfo/opensc-commits > > -- Viktor Tarasov <viktor.tara...@opentrust.com> _______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel