From ab9f9ebe279a534d92743a05244972fa160fd87c Mon Sep 17 00:00:00 2001 From: dxl <64101226@qq.com> Date: Fri, 26 Dec 2025 11:27:52 +0800 Subject: [PATCH] Define json_int_t as type int64_t when JSON_INTEGER_IS_LONG_LONG is enabled. --- client/deps/jansson/jansson.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/deps/jansson/jansson.h b/client/deps/jansson/jansson.h index 74a3fddec..161c794a7 100644 --- a/client/deps/jansson/jansson.h +++ b/client/deps/jansson/jansson.h @@ -67,9 +67,9 @@ typedef struct json_t { #ifndef JANSSON_USING_CMAKE /* disabled if using cmake */ #if JSON_INTEGER_IS_LONG_LONG // Judging the ‘_WIN32 ’ macro in Msys2 environment will result in UCRT being unable to recognize I64d. -// We may need to use inttypes.h for better compatibility. +// We may need to use inttypes.h & stdint.h for better compatibility. #define JSON_INTEGER_FORMAT PRId64 -typedef long long json_int_t; +typedef int64_t json_int_t; #else #define JSON_INTEGER_FORMAT "ld" typedef long json_int_t;