summaryrefslogtreecommitdiff
path: root/src/include/tsearch
diff options
context:
space:
mode:
authorThomas Munro2022-07-23 04:54:00 +0000
committerThomas Munro2022-07-23 04:54:00 +0000
commit634a89c7082538e9521a97e5e92126090b68645c (patch)
tree70da70313d7f4f2cf291bbff2cb01c5c87a845b5 /src/include/tsearch
parenta3b8d2a997ab6e8d982495753013c440b32929ba (diff)
Remove configure probe for wctype.h.
This header is present in SUSv2 and Windows. Also remove the inclusion of <wchar.h>, following clues that it was only included for the benefit of historical systems that didn't have <wctype.h>. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/CA%2BhUKGKAmTgbg_hMiGG5T7pkpzOnY1cWFAHYtZXHCpqeC_hCkA%40mail.gmail.com
Diffstat (limited to 'src/include/tsearch')
-rw-r--r--src/include/tsearch/ts_locale.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/include/tsearch/ts_locale.h b/src/include/tsearch/ts_locale.h
index 7d7c4e16c62..d14cb4ed26d 100644
--- a/src/include/tsearch/ts_locale.h
+++ b/src/include/tsearch/ts_locale.h
@@ -14,20 +14,12 @@
#include <ctype.h>
#include <limits.h>
+#include <wctype.h>
#include "lib/stringinfo.h"
#include "mb/pg_wchar.h"
#include "utils/pg_locale.h"
-/*
- * towlower() and friends should be in <wctype.h>, but some pre-C99 systems
- * declare them in <wchar.h>, so include that too.
- */
-#include <wchar.h>
-#ifdef HAVE_WCTYPE_H
-#include <wctype.h>
-#endif
-
/* working state for tsearch_readline (should be a local var in caller) */
typedef struct
{