aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/backend/utils/adt/formatting.c8
-rw-r--r--src/include/pg_config.h.in3
-rw-r--r--src/include/regex/regcustom.h8
-rw-r--r--src/include/tsearch/ts_locale.h10
-rw-r--r--src/tools/msvc/Solution.pm1
5 files changed, 1 insertions, 29 deletions
diff --git a/src/backend/utils/adt/formatting.c b/src/backend/utils/adt/formatting.c
index e909c1a200c..6f8734a947d 100644
--- a/src/backend/utils/adt/formatting.c
+++ b/src/backend/utils/adt/formatting.c
@@ -69,15 +69,7 @@
#include <math.h>
#include <float.h>
#include <limits.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
#ifdef USE_ICU
#include <unicode/ustring.h>
diff --git a/src/include/pg_config.h.in b/src/include/pg_config.h.in
index 21e9283731b..000ed9bde27 100644
--- a/src/include/pg_config.h.in
+++ b/src/include/pg_config.h.in
@@ -700,9 +700,6 @@
/* Define to 1 if you have the `wcstombs_l' function. */
#undef HAVE_WCSTOMBS_L
-/* Define to 1 if you have the <wctype.h> header file. */
-#undef HAVE_WCTYPE_H
-
/* Define to 1 if you have the <winldap.h> header file. */
#undef HAVE_WINLDAP_H
diff --git a/src/include/regex/regcustom.h b/src/include/regex/regcustom.h
index 100c52d640f..fc158e1bb7b 100644
--- a/src/include/regex/regcustom.h
+++ b/src/include/regex/regcustom.h
@@ -40,15 +40,7 @@
#include <ctype.h>
#include <limits.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
#include "mb/pg_wchar.h"
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
{
diff --git a/src/tools/msvc/Solution.pm b/src/tools/msvc/Solution.pm
index 2f364ab1123..f8df6acabe5 100644
--- a/src/tools/msvc/Solution.pm
+++ b/src/tools/msvc/Solution.pm
@@ -426,7 +426,6 @@ sub GenerateFiles
HAVE_UUID_UUID_H => undef,
HAVE_WINLDAP_H => undef,
HAVE_WCSTOMBS_L => 1,
- HAVE_WCTYPE_H => 1,
HAVE_VISIBILITY_ATTRIBUTE => undef,
HAVE_WRITEV => undef,
HAVE_X509_GET_SIGNATURE_NID => 1,