mirror of
https://github.com/postgres/postgres.git
synced 2025-05-13 01:13:08 -04: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:
parent
a3b8d2a997
commit
634a89c708
2
configure
vendored
2
configure
vendored
@ -13875,7 +13875,7 @@ $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
for ac_header in atomic.h copyfile.h execinfo.h getopt.h ifaddrs.h langinfo.h mbarrier.h poll.h sys/epoll.h sys/event.h sys/ipc.h sys/personality.h sys/prctl.h sys/procctl.h sys/resource.h sys/select.h sys/sem.h sys/shm.h sys/signalfd.h sys/sockio.h sys/uio.h sys/un.h termios.h ucred.h wctype.h
|
for ac_header in atomic.h copyfile.h execinfo.h getopt.h ifaddrs.h langinfo.h mbarrier.h poll.h sys/epoll.h sys/event.h sys/ipc.h sys/personality.h sys/prctl.h sys/procctl.h sys/resource.h sys/select.h sys/sem.h sys/shm.h sys/signalfd.h sys/sockio.h sys/uio.h sys/un.h termios.h ucred.h
|
||||||
do :
|
do :
|
||||||
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
||||||
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
|
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
|
||||||
|
@ -1469,7 +1469,6 @@ AC_CHECK_HEADERS(m4_normalize([
|
|||||||
sys/un.h
|
sys/un.h
|
||||||
termios.h
|
termios.h
|
||||||
ucred.h
|
ucred.h
|
||||||
wctype.h
|
|
||||||
]))
|
]))
|
||||||
|
|
||||||
# On BSD, test for net/if.h will fail unless sys/socket.h
|
# On BSD, test for net/if.h will fail unless sys/socket.h
|
||||||
|
@ -69,15 +69,7 @@
|
|||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <float.h>
|
#include <float.h>
|
||||||
#include <limits.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>
|
#include <wctype.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef USE_ICU
|
#ifdef USE_ICU
|
||||||
#include <unicode/ustring.h>
|
#include <unicode/ustring.h>
|
||||||
|
@ -700,9 +700,6 @@
|
|||||||
/* Define to 1 if you have the `wcstombs_l' function. */
|
/* Define to 1 if you have the `wcstombs_l' function. */
|
||||||
#undef HAVE_WCSTOMBS_L
|
#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. */
|
/* Define to 1 if you have the <winldap.h> header file. */
|
||||||
#undef HAVE_WINLDAP_H
|
#undef HAVE_WINLDAP_H
|
||||||
|
|
||||||
|
@ -40,15 +40,7 @@
|
|||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <limits.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>
|
#include <wctype.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "mb/pg_wchar.h"
|
#include "mb/pg_wchar.h"
|
||||||
|
|
||||||
|
@ -14,20 +14,12 @@
|
|||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
#include <wctype.h>
|
||||||
|
|
||||||
#include "lib/stringinfo.h"
|
#include "lib/stringinfo.h"
|
||||||
#include "mb/pg_wchar.h"
|
#include "mb/pg_wchar.h"
|
||||||
#include "utils/pg_locale.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) */
|
/* working state for tsearch_readline (should be a local var in caller) */
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
|
@ -426,7 +426,6 @@ sub GenerateFiles
|
|||||||
HAVE_UUID_UUID_H => undef,
|
HAVE_UUID_UUID_H => undef,
|
||||||
HAVE_WINLDAP_H => undef,
|
HAVE_WINLDAP_H => undef,
|
||||||
HAVE_WCSTOMBS_L => 1,
|
HAVE_WCSTOMBS_L => 1,
|
||||||
HAVE_WCTYPE_H => 1,
|
|
||||||
HAVE_VISIBILITY_ATTRIBUTE => undef,
|
HAVE_VISIBILITY_ATTRIBUTE => undef,
|
||||||
HAVE_WRITEV => undef,
|
HAVE_WRITEV => undef,
|
||||||
HAVE_X509_GET_SIGNATURE_NID => 1,
|
HAVE_X509_GET_SIGNATURE_NID => 1,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user