diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2004-09-15 21:44:39 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2004-09-15 21:44:39 +0000 |
commit | 181cb05147a5590048f29f246f4b146e6f3b8112 (patch) | |
tree | 7db188d06a0ffe8da7e41c645bd2fe6dc068f16c /newlib/libc/reent/impure.c | |
parent | 51d4a7eae1d1ad375146e43b74e0241ff774adea (diff) | |
download | cygnal-181cb05147a5590048f29f246f4b146e6f3b8112.tar.gz cygnal-181cb05147a5590048f29f246f4b146e6f3b8112.tar.bz2 cygnal-181cb05147a5590048f29f246f4b146e6f3b8112.zip |
2004-09-15 Corinna Vinschen <vinschen@redhat.com>
* libc/reent/impure.c (reent_data): Define as alias to impure_data
when building for Cygwin.
* libc/include/sys/reent.h (_GLOBAL_REENT): Revert definition to
_global_impure_ptr.
Diffstat (limited to 'newlib/libc/reent/impure.c')
-rw-r--r-- | newlib/libc/reent/impure.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/newlib/libc/reent/impure.c b/newlib/libc/reent/impure.c index 27c0e0b5a..12ee7177b 100644 --- a/newlib/libc/reent/impure.c +++ b/newlib/libc/reent/impure.c @@ -10,5 +10,8 @@ #endif static struct _reent __ATTRIBUTE_IMPURE_DATA__ impure_data = _REENT_INIT (impure_data); +#ifdef __CYGWIN__ +extern struct _reent reent_data __attribute__ ((alias("impure_data"))); +#endif struct _reent *__ATTRIBUTE_IMPURE_PTR__ _impure_ptr = &impure_data; struct _reent *_CONST __ATTRIBUTE_IMPURE_PTR__ _global_impure_ptr = &impure_data; |