From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Philipp Stephani
> From: Philipp Stephani <p.stephani2@gmail.com>
> Date: Tue, 19 Dec 2017 00:17:29 +0100
> Cc: Philipp Stephani <phst@google.com>
>
> * src/json.c (json_parse_error): Use Jansson's error code support = if
> available.
> ---
>=C2=A0 src/json.c | 15 ++++++++++++---
>=C2=A0 1 file changed, 12 insertions(+), 3 deletions(-)
>
> diff --git a/src/json.c b/src/json.c
> index 29e4400fc9..b996cad5a6 100644
> --- a/src/json.c
> +++ b/src/json.c
> @@ -249,15 +249,24 @@ static _Noreturn void
>=C2=A0 json_parse_error (const json_error_t *error)
>=C2=A0 {
>=C2=A0 =C2=A0 Lisp_Object symbol;
> -=C2=A0 /* FIXME: Upstream Jansson should have a way to return error c= odes
> -=C2=A0 =C2=A0 =C2=A0without parsing the error messages.=C2=A0 See
> -=C2=A0 =C2=A0 =C2=A0https://github.com/akheron/ja= nsson/issues/352.=C2=A0 */
> +#if JANSSON_VERSION_HEX >=3D 0x020B00
> +=C2=A0 switch (json_error_code (error))
Would it be possible for you to add the few lines which would make
this work on MS-Windows?=C2=A0 It's pretty much boilerplate (you can se= e
what I did for every jansson function we need, and copycat that), but
if you don't add those few lines, the Windows build will fail to link.<= br>