2000-02-18 03:39:52 +08:00
|
|
|
#include <reent.h>
|
|
|
|
|
|
|
|
/* Note that there is a copy of this in sys/reent.h. */
|
|
|
|
#ifndef __ATTRIBUTE_IMPURE_PTR__
|
|
|
|
#define __ATTRIBUTE_IMPURE_PTR__
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __ATTRIBUTE_IMPURE_DATA__
|
|
|
|
#define __ATTRIBUTE_IMPURE_DATA__
|
|
|
|
#endif
|
|
|
|
|
|
|
|
static struct _reent __ATTRIBUTE_IMPURE_DATA__ impure_data = _REENT_INIT (impure_data);
|
2004-09-16 05:44:39 +08:00
|
|
|
#ifdef __CYGWIN__
|
|
|
|
extern struct _reent reent_data __attribute__ ((alias("impure_data")));
|
|
|
|
#endif
|
2000-02-18 03:39:52 +08:00
|
|
|
struct _reent *__ATTRIBUTE_IMPURE_PTR__ _impure_ptr = &impure_data;
|
2004-06-12 04:37:10 +08:00
|
|
|
struct _reent *_CONST __ATTRIBUTE_IMPURE_PTR__ _global_impure_ptr = &impure_data;
|