On 02/07/11 13:08, Peter Stuge: > Andreas Jellinghaus wrote: >> hmm, can you >> #ifdef WIN32 >> #define %size_t %Iu >> #else >> #define %size_t %zu >> #endif > > #define PCT_SIZE_T "%lu" and "%zu" could work I guess.
If you mean "define PCT_SIZE_T %lu on Windows, %zu otherwise", then I think the use of "%Iu" remain better choice. It is vendor-recommended way how to print size_t on Windows so it has better chance to work on all flavors of Windows including future versions. Maybe, future versions of Windows may introduce size_t that will be larger than long. Then - '%lu" become broken, '%Iu' will endure, so '%Iu' sounds better for me. Just my $0.02 Dan _______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel