Am Sonntag 06 Februar 2011, um 20:23:59 schrieb Ludovic Rousseau:
> 2011/2/6  <[email protected]>:
> > Revision: 5185
> > Author:   andre
> > Date:     2011-02-06 17:28:30 +0000 (Sun, 06 Feb 2011)
> > 
> > Log Message:
> > -----------
> > Revert r5137, because size_t is defined as unsigned integer type (without
> > further qualification).
> > 
> > http://www.opengroup.org/onlinepubs/000095399/basedefs/stddef.h.html
> 
> I will not argue on the fact that integer is not just int. It can also
> be long and long long.
> 
...
> In fact the correct answer is %zu [1]
> But this does not work on Windows.

windows has %I[uoxX]

http://msdn.microsoft.com/en-us/library/tcxf1dw6(v=VS.90).aspx

hmm, can you
#ifdef WIN32
#define %size_t %Iu
#else
#define %size_t %zu
#endif

?

Regards, Andreas
_______________________________________________
opensc-devel mailing list
[email protected]
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to