From 888c679ba406e89d86bdfbde033e307f5af5198f Mon Sep 17 00:00:00 2001 From: Siddhesh Poyarekar Date: Thu, 10 Jul 2014 14:24:30 +0530 Subject: Sync up error.c with gnulib Summary of changes: - Use of !_LIBC instead of HAVE_CONFIG_H - Code changes in [!_LIBC] that don't affect us - Minor formatting changes - Use __builtin_expect in shared code - Define some macros in [_LIBC] that are used in gnulib but never defined in glibc - Flip macro check for STRERROR_R_CHAR_P so that it does not throw a warning --- ChangeLog | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 7db7bdff0b..a1232aa215 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,22 @@ 2014-07-10 Siddhesh Poyarekar + Sync up with gnulib. + * misc/error.c: Use !_LIBC instead of HAVE_CONFIG_H. + [!_LIBC && ENABLE_NLS]: Include gettext.h. + [_LIBC]: Define USE_UNLOCKED_IO, _GL_ATTRIBUTE_FORMAT_PRINTF + and _GL_ARG_NONNULL. + [USE_UNLOCKED_IO]: Include unlocked-io.h. + [!_LIBC]: Include code for Windows and Cygwin. + [!_LIBC && !HAVE_DECL_STRERROR_R && !STRERROR_R_CHAR_P]: + Include prototype for int strerror_r. + [!_LIBC] (is_open): New function. + (flush_stdout): New function. + (print_errno_message): Use it. + (error): Likewise. + (error_at_line): Likewise. + (error_tail) Add function attribute macros. Use + __builtin_expect. + * time/strptime_l.c [_LIBC]: Define HAVE_LOCALTIME_R. * time/strftime_l.c [_LIBC]: Define HAVE_STRFTIME. -- cgit v1.2.3