Initial Windows port

This commit is contained in:
Asanka Herath
2009-07-22 15:55:45 -04:00
committed by Love Hornquist Astrand
parent 25a2ac726b
commit b1063ea8fc
361 changed files with 11994 additions and 1334 deletions

View File

@@ -166,7 +166,7 @@ week_number_mon4 (const struct tm *tm)
*
*/
size_t ROKEN_LIB_FUNCTION
ROKEN_LIB_FUNCTION size_t ROKEN_LIB_CALL
strftime (char *buf, size_t maxsize, const char *format,
const struct tm *tm)
{
@@ -382,7 +382,7 @@ strftime (char *buf, size_t maxsize, const char *format,
"%%%c", *format);
break;
}
if (ret < 0 || ret >= maxsize - n)
if (ret < 0 || ret >= (int)(maxsize - n))
return 0;
n += ret;
buf += ret;