std_cerrno.h (errno): Define macro from identifier declared with external linkage...
authorLoren J. Rittle <ljrittle@acm.org>
Mon, 23 Apr 2001 19:54:34 +0000 (19:54 +0000)
committerLoren J. Rittle <ljrittle@gcc.gnu.org>
Mon, 23 Apr 2001 19:54:34 +0000 (19:54 +0000)
* include/c_std/bits/std_cerrno.h (errno): Define macro from
identifier declared with external linkage, if needed.
* include/c_std/bits/std_csetjmp.h (setjmp): Likewise.
* include/c_std/bits/std_cstdarg.h (va_end): Likewise.

From-SVN: r41507

libstdc++-v3/ChangeLog
libstdc++-v3/include/c_std/bits/std_cerrno.h
libstdc++-v3/include/c_std/bits/std_csetjmp.h
libstdc++-v3/include/c_std/bits/std_cstdarg.h

index f5944f45d542d982a63a58bd1d8cdada9b899ba8..fa4cf3edaa6ff1a9d7463fc167bec620f77786f1 100644 (file)
@@ -1,3 +1,10 @@
+2001-04-23  Loren J. Rittle  <ljrittle@acm.org>
+
+       * include/c_std/bits/std_cerrno.h (errno): Define macro from
+       identifier declared with external linkage, if needed.
+       * include/c_std/bits/std_csetjmp.h (setjmp): Likewise.
+       * include/c_std/bits/std_cstdarg.h (va_end): Likewise.
+
 2001-04-23  Benjamin Kosnik  <bkoz@fillmore.constant.com>
 
        * acinclude.m4 (CXX): Set to CXX so that in-directory
index d4b2b7acd65f20c8ceb823f374e68c3a07765ad9..0d75f84307b56c620c2f6fd623468027a57534d1 100644 (file)
@@ -39,4 +39,9 @@
 #pragma GCC system_header
 #include <errno.h>
 
+// Adhere to section 17.4.1.2 clause 5 of ISO 14882:1998
+#ifndef errno
+#define errno errno
+#endif
+
 #endif
index b8c319ce0a7e83c7b16db5d26a295e986ecb9833..d282ae6aa625707422288ca5afd54799d34d94fd 100644 (file)
 // Get rid of those macros defined in <setjmp.h> in lieu of real functions.
 #undef longjmp
 
+// Adhere to section 17.4.1.2 clause 5 of ISO 14882:1998
+#ifndef setjmp
+#define setjmp(env) setjmp (env)
+#endif
+
 namespace std
 {
   using ::jmp_buf;
index 39018be29f2636f4d655acd2d0301d31f2113128..ce0bf283d3541279899a20d17c9c3dd6c149962f 100644 (file)
 #pragma GCC system_header
 #include <stdarg.h>
 
+// Adhere to section 17.4.1.2 clause 5 of ISO 14882:1998
+#ifndef va_end
+#define va_end(ap) va_end (ap)
+#endif
+
 namespace std
 {
   using ::va_list;