diff options
| author | ljrittle <ljrittle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-04-23 19:54:34 +0000 |
|---|---|---|
| committer | ljrittle <ljrittle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-04-23 19:54:34 +0000 |
| commit | e46566dab0db7d1e3a5a0feb0d6fe2ac146181fe (patch) | |
| tree | 8ffe6fb979b0f724ca221b55af898e8cadcf8a40 | |
| parent | a106f8d6b707cc95a45e497b1c3712d8aefd8894 (diff) | |
| download | ppe42-gcc-e46566dab0db7d1e3a5a0feb0d6fe2ac146181fe.tar.gz ppe42-gcc-e46566dab0db7d1e3a5a0feb0d6fe2ac146181fe.zip | |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41507 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | libstdc++-v3/ChangeLog | 7 | ||||
| -rw-r--r-- | libstdc++-v3/include/c_std/bits/std_cerrno.h | 5 | ||||
| -rw-r--r-- | libstdc++-v3/include/c_std/bits/std_csetjmp.h | 5 | ||||
| -rw-r--r-- | libstdc++-v3/include/c_std/bits/std_cstdarg.h | 5 |
4 files changed, 22 insertions, 0 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index f5944f45d54..fa4cf3edaa6 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -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 diff --git a/libstdc++-v3/include/c_std/bits/std_cerrno.h b/libstdc++-v3/include/c_std/bits/std_cerrno.h index d4b2b7acd65..0d75f84307b 100644 --- a/libstdc++-v3/include/c_std/bits/std_cerrno.h +++ b/libstdc++-v3/include/c_std/bits/std_cerrno.h @@ -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 diff --git a/libstdc++-v3/include/c_std/bits/std_csetjmp.h b/libstdc++-v3/include/c_std/bits/std_csetjmp.h index b8c319ce0a7..d282ae6aa62 100644 --- a/libstdc++-v3/include/c_std/bits/std_csetjmp.h +++ b/libstdc++-v3/include/c_std/bits/std_csetjmp.h @@ -42,6 +42,11 @@ // 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; diff --git a/libstdc++-v3/include/c_std/bits/std_cstdarg.h b/libstdc++-v3/include/c_std/bits/std_cstdarg.h index 39018be29f2..ce0bf283d35 100644 --- a/libstdc++-v3/include/c_std/bits/std_cstdarg.h +++ b/libstdc++-v3/include/c_std/bits/std_cstdarg.h @@ -39,6 +39,11 @@ #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; |

