On 16.02.2011 17:39, Douglas E. Engert wrote: > > > On 2/16/2011 6:21 AM, Martin Paljak wrote: >> Hello, >> On Feb 16, 2011, at 12:32 PM, webmas...@opensc-project.org wrote: >>> ----------- >>> card-piv: 'ssize_t' is not defined when compiling with Visual Studio >> >> (I'm on the road not connected to work PC with git and more links, but some >> comments nevertheless) >> >> Windows does have SSIZE_T. But Windows prototype for uses int for _read(). >> So the best solution probably lies in between two options, the other one >> being mapping SSIZE_T in winconfig.h instead. >> >> http://msdn.microsoft.com/en-US/library/ms235412(v=VS.80).aspx >> http://msdn.microsoft.com/en-us/library/aa383751(v=vs.85).aspx >> > > The ssize_t was added in #5135 to fix other issues. > > Since this is the only place in OpenSC to test the results of a read like > this, another approach would be in the attachment. This also makes sure > that there are at least 2 bytes read.
Fine, will you commit it? _______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel