From: Peter Eisentraut Date: Thu, 16 Apr 2026 07:35:05 +0000 (+0200) Subject: Add missing include X-Git-Url: http://git.ipfire.org/index.cgi?a=commitdiff_plain;h=c86d2ccdb35;p=thirdparty%2Fpostgresql.git Add missing include "utils/pg_locale.h" is needed when under MSVC for wchar2char(), introduced by commit 65707ed9afc. Surprisingly, MSVC doesn't warn by default about calling undeclared functions. This will be addressed in a separate commit. Reviewed-by: Tom Lane Discussion: https://www.postgresql.org/message-id/flat/1142ad86-e475-41b3-aeee-c6ad913064fa%40eisentraut.org --- diff --git a/src/backend/utils/error/elog.c b/src/backend/utils/error/elog.c index c270c62e213..ad960336e8d 100644 --- a/src/backend/utils/error/elog.c +++ b/src/backend/utils/error/elog.c @@ -86,6 +86,7 @@ #include "tcop/tcopprot.h" #include "utils/guc_hooks.h" #include "utils/memutils.h" +#include "utils/pg_locale.h" #include "utils/ps_status.h" #include "utils/varlena.h"