Make roken build on windows
Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
This commit is contained in:

committed by
Love Hornquist Astrand

parent
c4b95f7330
commit
d00f9984a5
@@ -31,10 +31,10 @@
|
||||
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
|
||||
|
||||
#include <config.h>
|
||||
#include "roken.h"
|
||||
#ifdef TEST_STRPFTIME
|
||||
#include "strpftime-test.h"
|
||||
#endif
|
||||
#include "roken.h"
|
||||
|
||||
static const char *abb_weekdays[] = {
|
||||
"Sun",
|
||||
@@ -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;
|
||||
|
Reference in New Issue
Block a user