]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Add missing include
authorPeter Eisentraut <peter@eisentraut.org>
Thu, 16 Apr 2026 07:35:05 +0000 (09:35 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Thu, 16 Apr 2026 07:35:05 +0000 (09:35 +0200)
"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 <tgl@sss.pgh.pa.us>
Discussion: https://www.postgresql.org/message-id/flat/1142ad86-e475-41b3-aeee-c6ad913064fa%40eisentraut.org

src/backend/utils/error/elog.c

index c270c62e213968bf58317f665a9940bda18c0992..ad960336e8dd7b9688e37c62eee148aab6fd83dc 100644 (file)
@@ -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"