diff options
author | Alan Modra <amodra@gmail.com> | 2022-12-20 18:01:07 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2022-12-20 19:01:10 +1030 |
commit | 9d0991449285833b9a77cc02850a1e113e460362 (patch) | |
tree | e5047d50379eb53c84a593c91acc8a85f5cde6fd /bfd/configure | |
parent | b3737aadf1b6e11e37f8584c4feef73fd5c399ba (diff) | |
download | gdb-9d0991449285833b9a77cc02850a1e113e460362.zip gdb-9d0991449285833b9a77cc02850a1e113e460362.tar.gz gdb-9d0991449285833b9a77cc02850a1e113e460362.tar.bz2 |
PR29915, bfdio.c does not compile with mingw.org's MinGW
PR 29915
* configure.ac: Add AC_CHECK_DECLS test ___lc_codepage_func.
* configure: Regenerate.
* config.in: Regenerate.
* bfdio.c (___lc_codepage_func): Move declaration to..
(_bfd_real_fopen): ..here, and use !HAVE_DECL____LC_CODEPAGE_FUNC.
Diffstat (limited to 'bfd/configure')
-rwxr-xr-x | bfd/configure | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bfd/configure b/bfd/configure index b532fe7..31dfac5 100755 --- a/bfd/configure +++ b/bfd/configure @@ -13006,6 +13006,18 @@ cat >>confdefs.h <<_ACEOF #define HAVE_DECL_STRNLEN $ac_have_decl _ACEOF +ac_fn_c_check_decl "$LINENO" "___lc_codepage_func" "ac_cv_have_decl____lc_codepage_func" "#include <locale.h> +" +if test "x$ac_cv_have_decl____lc_codepage_func" = xyes; then : + ac_have_decl=1 +else + ac_have_decl=0 +fi + +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL____LC_CODEPAGE_FUNC $ac_have_decl +_ACEOF + case "${host}" in |