Commit 5a6dc5a3 authored by oharboe's avatar oharboe
Browse files

Michael Bruck - fix warnings.

git-svn-id: svn:// b42882b7-edfa-0310-969c-e2dbd0fdcd60
parent ea306d3e
...@@ -33,15 +33,12 @@ ...@@ -33,15 +33,12 @@
type * variable = calloc(1, sizeof(type) * items) type * variable = calloc(1, sizeof(type) * items)
/* Don't know exactly when %zu was added to glibc (CVS says in 1998). /* For MinGW use 'I' prefix to print size_t (instead of 'z') */
Assume for now that its between GCC versions 3.x.x and 4.x.x .
MinGW's GCC 3.4.5 comes with a glibc that doesn't support it.
#if __GNUC__ > 3 #ifndef __MSVCRT__
#define ZU "%zu" #define ZU "%zu"
#else #else
#define ZU "%u" #define ZU "%Iu"
#endif #endif
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment