aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/formatting.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2020-02-21 14:11:39 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2020-02-21 14:30:47 -0500
commit97cf1fa4ed57cc1ed556ac4f827e7df8538f2d29 (patch)
tree9112a1fb86ed3589762c8615ad24574b68449e98 /src/backend/utils/adt/formatting.c
parent481c8e9232386e289fbd3e8f75893ae8d9814298 (diff)
downloadpostgresql-97cf1fa4ed57cc1ed556ac4f827e7df8538f2d29.tar.gz
postgresql-97cf1fa4ed57cc1ed556ac4f827e7df8538f2d29.zip
Assume that we have <wchar.h>.
Windows has this, and so do all other live platforms according to the buildfarm; it's been required by POSIX since SUSv2. So remove the configure probe and tests of HAVE_WCHAR_H. This is part of a series of commits to get rid of no-longer-relevant configure checks and dead src/port/ code. I'm committing them separately to make it easier to back out individual changes if they prove less portable than I expect. Discussion: https://postgr.es/m/15379.1582221614@sss.pgh.pa.us
Diffstat (limited to 'src/backend/utils/adt/formatting.c')
-rw-r--r--src/backend/utils/adt/formatting.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/backend/utils/adt/formatting.c b/src/backend/utils/adt/formatting.c
index f58331de75b..d0294684e25 100644
--- a/src/backend/utils/adt/formatting.c
+++ b/src/backend/utils/adt/formatting.c
@@ -72,11 +72,9 @@
/*
* towlower() and friends should be in <wctype.h>, but some pre-C99 systems
- * declare them in <wchar.h>.
+ * declare them in <wchar.h>, so include that too.
*/
-#ifdef HAVE_WCHAR_H
#include <wchar.h>
-#endif
#ifdef HAVE_WCTYPE_H
#include <wctype.h>
#endif