Author: sebor
Date: Thu Oct 11 17:36:08 2007
New Revision: 583997
URL: http://svn.apache.org/viewvc?rev=583997&view=rev
Log:
2007-10-11 Martin Sebor <[EMAIL PROTECTED]>
STDCXX-590
* _cerrno.h [__linux__] (errno): Unconditionally #defined to
__errno_location() which is always declared/defined by GNU
libc, going as far back as Red Hat Linux 8 (libc 2.2.93).
Modified:
incubator/stdcxx/trunk/include/ansi/_cerrno.h
Modified: incubator/stdcxx/trunk/include/ansi/_cerrno.h
URL:
http://svn.apache.org/viewvc/incubator/stdcxx/trunk/include/ansi/_cerrno.h?rev=583997&r1=583996&r2=583997&view=diff
==============================================================================
--- incubator/stdcxx/trunk/include/ansi/_cerrno.h (original)
+++ incubator/stdcxx/trunk/include/ansi/_cerrno.h Thu Oct 11 17:36:08 2007
@@ -23,7 +23,7 @@
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*
- * Copyright 1994-2006 Rogue Wave Software.
+ * Copyright 2005-2007 Rogue Wave Software, Inc.
*
**************************************************************************/
@@ -40,18 +40,12 @@
extern "C" {
-extern int errno;
-
extern int* __errno_location ();
-#ifdef _RWSTD_REENTRANT
- // 17.4.1.2, p5 - errno may be a macro
- // lwg issue 310 - errno must be a macro
-# define errno (*_STD::__errno_location ())
-#else // if !defined (_RWSTD_REENTRANT)
-# define errno _STD::errno
-#endif // _RWSTD_REENTRANT
+ // 17.4.1.2, p5 - errno may be a macro
+ // lwg issue 310 - errno must be a macro
+#define errno (*_STD::__errno_location ())
#define EDOM 33