Ensure that <features.h> is included before __GLIBC__ is tested.

This commit is contained in:
Bruno Haible 2010-11-21 00:09:15 +01:00
parent fdeb790080
commit fcf60b8042
7 changed files with 31 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2010-11-20 Bruno Haible <bruno@clisp.org>
Ensure that <features.h> is included before __GLIBC__ is tested.
* printf-parse.h: Include <features.h>.
Reported by Mike Frysinger <vapier@gentoo.org>.
2010-11-20 Bruno Haible <bruno@clisp.org>
Port to uClibc.

View File

@ -19,6 +19,10 @@
#ifndef _PRINTF_PARSE_H
#define _PRINTF_PARSE_H
#if HAVE_FEATURES_H
# include <features.h> /* for __GLIBC__, __UCLIBC__ */
#endif
#include "printf-args.h"

View File

@ -1,3 +1,10 @@
2010-11-20 Bruno Haible <bruno@clisp.org>
Ensure that <features.h> is included before __GLIBC__ is tested.
* printf-parse.h: Include <features.h>.
* configure.ac: Test for <features.h>.
Reported by Mike Frysinger <vapier@gentoo.org>.
2010-11-20 Bruno Haible <bruno@clisp.org>
Port to uClibc.

View File

@ -1,5 +1,5 @@
dnl Configuration for the GNU libasprintf library
dnl Copyright (C) 2002-2009 Free Software Foundation, Inc.
dnl Copyright (C) 2002-2010 Free Software Foundation, Inc.
dnl
dnl This program is free software: you can redistribute it and/or modify
dnl it under the terms of the GNU General Public License as published by
@ -52,6 +52,7 @@ AC_SUBST([LTNOUNDEF])
dnl Checks for libraries.
dnl Checks for header files.
AC_CHECK_HEADERS([features.h])
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_INLINE

View File

@ -19,6 +19,10 @@
#ifndef _PRINTF_PARSE_H
#define _PRINTF_PARSE_H
#if HAVE_FEATURES_H
# include <features.h> /* for __GLIBC__, __UCLIBC__ */
#endif
#include "printf-args.h"

View File

@ -1,3 +1,9 @@
2010-11-20 Bruno Haible <bruno@clisp.org>
Ensure that <features.h> is included before __GLIBC__ is tested.
* intl.m4 (AM_INTL_SUBDIR): Test for <features.h>.
Reported by Mike Frysinger <vapier@gentoo.org>.
2010-11-20 Bruno Haible <bruno@clisp.org>
Port to uClibc.

View File

@ -1,4 +1,4 @@
# intl.m4 serial 19 (gettext-0.18.2)
# intl.m4 serial 20 (gettext-0.18.2)
dnl Copyright (C) 1995-2010 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
@ -55,7 +55,7 @@ AC_DEFUN([AM_INTL_SUBDIR],
[AC_DEFINE([ptrdiff_t], [long],
[Define as the type of the result of subtracting two pointers, if the system doesn't define it.])
])
AC_CHECK_HEADERS([stddef.h stdlib.h string.h])
AC_CHECK_HEADERS([features.h stddef.h stdlib.h string.h])
AC_CHECK_FUNCS([asprintf fwprintf newlocale putenv setenv setlocale \
snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb])