printf modifiers are different on Windows

SVN revision: 49876
This commit is contained in:
Vincent Torri 2010-06-26 14:26:54 +00:00
parent 29c8151341
commit f5d7f3ea1a
2 changed files with 8 additions and 0 deletions

View File

@ -102,7 +102,11 @@ _eina_magic_strings_alloc(void)
tmp = realloc(_eina_magic_strings, sizeof(Eina_Magic_String) * size);
if (!tmp)
{
#ifdef _WIN32
ERR("could not realloc magic_strings from %Iu to %Iu buckets.",
#else
ERR("could not realloc magic_strings from %zu to %zu buckets.",
#endif
_eina_magic_strings_allocated, size);
return NULL;
}

View File

@ -864,7 +864,11 @@ _eina_stringshare_small_bucket_dump(Eina_Stringshare_Small_Bucket *bucket, struc
for (i = 0; i < bucket->count; i++, s++, l++, r++)
{
int dups;
#ifdef _WIN32
printf("DDD: %5hu %5hu '%s'\n", *l, *r, *s);
#else
printf("DDD: %5hhu %5hu '%s'\n", *l, *r, *s);
#endif
dups = (*r - 1);