From: Jason Li Date: Fri, 24 Mar 2017 06:53:25 +0000 (+0800) Subject: Fix error C3688 when compiling on Visual Studio 2015: invalid literal suffix 'PRId64... X-Git-Tag: json-c-0.13-20171207~95^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F311%2Fhead;p=thirdparty%2Fjson-c.git Fix error C3688 when compiling on Visual Studio 2015: invalid literal suffix 'PRId64'; literal operator or literal operator template 'operator ""PRId64' not found --- diff --git a/json_object.c b/json_object.c index dfac9f1d..dfa6f42b 100644 --- a/json_object.c +++ b/json_object.c @@ -590,7 +590,7 @@ static int json_object_int_to_json_string(struct json_object* jso, { /* room for 19 digits, the sign char, and a null term */ static char sbuf[21]; - snprintf(sbuf, sizeof(sbuf), "%"PRId64, jso->o.c_int64); + snprintf(sbuf, sizeof(sbuf), "%" PRId64, jso->o.c_int64); return printbuf_memappend (pb, sbuf, strlen(sbuf)); }