mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
mingw fixes (SF#2209829: https://sourceforge.net/tracker2/?func=detail&aid=2209829&group_id=13478&atid=313478)
This commit is contained in:
@@ -155,7 +155,7 @@ int utf8_encode(const char *from, char **to)
|
||||
|
||||
if(wchars == 0)
|
||||
{
|
||||
fprintf(stderr, "Unicode translation error %d\n", GetLastError());
|
||||
fprintf(stderr, "Unicode translation error %d\n", (int)GetLastError());
|
||||
return -1;
|
||||
}
|
||||
|
||||
@@ -174,7 +174,7 @@ int utf8_encode(const char *from, char **to)
|
||||
if(err != wchars)
|
||||
{
|
||||
free(unicode);
|
||||
fprintf(stderr, "Unicode translation error %d\n", GetLastError());
|
||||
fprintf(stderr, "Unicode translation error %d\n", (int)GetLastError());
|
||||
return -1;
|
||||
}
|
||||
|
||||
@@ -210,7 +210,7 @@ int utf8_decode(const char *from, char **to)
|
||||
|
||||
if(chars == 0)
|
||||
{
|
||||
fprintf(stderr, "Unicode translation error %d\n", GetLastError());
|
||||
fprintf(stderr, "Unicode translation error %d\n", (int)GetLastError());
|
||||
free(unicode);
|
||||
return -1;
|
||||
}
|
||||
@@ -227,7 +227,7 @@ int utf8_decode(const char *from, char **to)
|
||||
-1, *to, chars, NULL, NULL);
|
||||
if(err != chars)
|
||||
{
|
||||
fprintf(stderr, "Unicode translation error %d\n", GetLastError());
|
||||
fprintf(stderr, "Unicode translation error %d\n", (int)GetLastError());
|
||||
free(unicode);
|
||||
free(*to);
|
||||
*to = NULL;
|
||||
|
||||
Reference in New Issue
Block a user