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.
			
			
This commit is contained in:
		| @@ -1,3 +1,10 @@ | |||||||
|  | 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. | ||||||
|  |  | ||||||
| 2004-09-15  Jeff Johnston  <jjohnstn@redhat.com> | 2004-09-15  Jeff Johnston  <jjohnstn@redhat.com> | ||||||
|  |  | ||||||
| 	* configure.host: Reverting 2004-09-14 change as fix has occurred on | 	* configure.host: Reverting 2004-09-14 change as fix has occurred on | ||||||
|   | |||||||
| @@ -816,7 +816,7 @@ void _reclaim_reent _PARAMS ((struct _reent *)); | |||||||
|  |  | ||||||
| #endif /* !_REENT_ONLY */ | #endif /* !_REENT_ONLY */ | ||||||
|  |  | ||||||
| #define _GLOBAL_REENT _impure_ptr | #define _GLOBAL_REENT _global_impure_ptr | ||||||
|  |  | ||||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||||
| } | } | ||||||
|   | |||||||
| @@ -10,5 +10,8 @@ | |||||||
| #endif | #endif | ||||||
|  |  | ||||||
| static struct _reent __ATTRIBUTE_IMPURE_DATA__ impure_data = _REENT_INIT (impure_data); | 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 *__ATTRIBUTE_IMPURE_PTR__ _impure_ptr = &impure_data; | ||||||
| struct _reent *_CONST __ATTRIBUTE_IMPURE_PTR__ _global_impure_ptr = &impure_data; | struct _reent *_CONST __ATTRIBUTE_IMPURE_PTR__ _global_impure_ptr = &impure_data; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user