Am Dienstag 16 Februar 2010 13:57:07 schrieb François Leblanc: > This is needed to cross build opensc with cardmod support with mingw32 > since winscard.h not present in this case. So to configure --enable-carmod > witch detect cardmod.h header and in this header we need winscard.h or > internal-winscard.h
we ask people to download microsoft CNG SDK for cardmod.h, they could do the same to download winscard.h. or we could put the adapted winscard.h file we have as "internal-winscard.h" (used only for mingw32 builds, right?) on the webserver in contrib, in the build project, or into "win32" or "mingw" or "contrib" directories inside opensc. so the configure would be simple and clean -- an enable option for users to show they want to build with that, and a with option to point to the directory with these files. the include would be a simple #include <winscard.h> or #include <cardmod.h> and we can give detailed instructions where people can get those files (pcsclite-dev on linux/unix and plattform SDK on windows), or what alternatives they have (the file from contrib/build project/whatever). what do you think? would this work? or did I miss something - how exactly is winscard.h used? I find it strange that we need to fix a mingw32 bug with strange code in opensc, and would prefer a cleaner solution, or at least find out the details and document them somewhere. Regards, Andreas _______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel