1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-14 18:42:34 +03:00

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
This commit is contained in:
Thomas Munro
2022-07-23 16:54:00 +12:00
parent a3b8d2a997
commit 634a89c708
7 changed files with 2 additions and 31 deletions

View File

@ -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>