aboutsummaryrefslogtreecommitdiff
path: root/src/include/regex
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/include/regex
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/include/regex')
-rw-r--r--src/include/regex/regcustom.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/include/regex/regcustom.h b/src/include/regex/regcustom.h
index 82c9e2fad81..100c52d640f 100644
--- a/src/include/regex/regcustom.h
+++ b/src/include/regex/regcustom.h
@@ -43,11 +43,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