diff --git a/rarchdb/rarchdb.c b/rarchdb/rarchdb.c index e4c7c709b9..1489448c08 100644 --- a/rarchdb/rarchdb.c +++ b/rarchdb/rarchdb.c @@ -86,7 +86,13 @@ int rarchdb_create(int fd, rarchdb_value_provider value_provider, void *ctx) rarchdb_write_metadata(fd, &md); lseek(fd, root, SEEK_SET); write(fd, &header, sizeof(header)); - printf("Created DB with %llu entries\n", item_count); + printf( +#ifdef _WIN32 + "Created DB with %I64u entries\n" +#else + "Created DB with %llu entries\n" +#endif + ,(unsigned long long)item_count); return 0; } diff --git a/rarchdb/rmsgpack_dom.c b/rarchdb/rmsgpack_dom.c index 31493a0038..8d9bc5c7c8 100644 --- a/rarchdb/rmsgpack_dom.c +++ b/rarchdb/rmsgpack_dom.c @@ -265,10 +265,18 @@ void rmsgpack_dom_value_print(struct rmsgpack_dom_value *obj) printf("false"); break; case RDT_INT: - printf("%lld", obj->int_); +#ifdef _WIN32 + printf("%I64d", (signed long long)obj->int_); +#else + printf("%lld", (signed long long)obj->int_); +#endif break; case RDT_UINT: - printf("%llu", obj->uint_); +#ifdef _WIN32 + printf("%I64u", (unsigned long long)obj->uint_); +#else + printf("%llu", (unsigned long long)obj->uint_); +#endif break; case RDT_STRING: printf("\"%s\"", obj->string.buff);