From: Bruno Haible Date: Sat, 17 Jun 2006 16:09:19 +0000 (+0000) Subject: From Eric Blake: Assume errno.h declares errno. X-Git-Tag: cvs-readonly~2355 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=cb72b5d9086e0ae3d9d5c787fd4af500d31f31c9;p=gnulib.git From Eric Blake: Assume errno.h declares errno. --- diff --git a/lib/ChangeLog b/lib/ChangeLog index 9fb9ad9a5..df1e51eb3 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,9 @@ +2006-06-16 Eric Blake + + * unsetenv.c [!defined errno]: Assume errno.h declares errno. + * unicodeio.c [!defined errno]: Likewise. + * strtol.c [!defined errno]: Likewise. + 2006-06-15 Bruno Haible * stdint_.h: Rewritten to be fully auto-configured. diff --git a/lib/strtol.c b/lib/strtol.c index 9bfbe3c1a..eda2d2699 100644 --- a/lib/strtol.c +++ b/lib/strtol.c @@ -1,6 +1,6 @@ /* Convert string representation of a number into an integer value. - Copyright (C) 1991, 1992, 1994, 1995, 1996, 1997, 1998, 1999, 2003, 2005 + Copyright (C) 1991, 1992, 1994, 1995, 1996, 1997, 1998, 1999, 2003, 2005, 2006 Free Software Foundation, Inc. NOTE: The canonical source of this file is maintained with the GNU C @@ -30,9 +30,6 @@ #include #include -#ifndef errno -extern int errno; -#endif #ifndef __set_errno # define __set_errno(Val) errno = (Val) #endif diff --git a/lib/unicodeio.c b/lib/unicodeio.c index 42f467c31..54cae5530 100644 --- a/lib/unicodeio.c +++ b/lib/unicodeio.c @@ -1,6 +1,6 @@ /* Unicode character output to streams with locale dependent encoding. - Copyright (C) 2000-2003 Free Software Foundation, Inc. + Copyright (C) 2000-2003, 2006 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -30,11 +30,7 @@ #include #include - #include -#ifndef errno -extern int errno; -#endif #if HAVE_ICONV # include diff --git a/lib/unsetenv.c b/lib/unsetenv.c index 884aa028e..b26bd8dc9 100644 --- a/lib/unsetenv.c +++ b/lib/unsetenv.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1992,1995-1999,2000-2002,2005 Free Software Foundation, Inc. +/* Copyright (C) 1992,1995-1999,2000-2002,2005-2006 Free Software Foundation, Inc. This file is part of the GNU C Library. This program is free software; you can redistribute it and/or modify @@ -21,9 +21,6 @@ #include #if !_LIBC -# if !defined errno && !defined HAVE_ERRNO_DECL -extern int errno; -# endif # define __set_errno(ev) ((errno) = (ev)) #endif