2000-02-17 19:39:52 +00:00
|
|
|
#include <reent.h>
|
|
|
|
|
2009-04-21 18:38:53 +00:00
|
|
|
/* Redeclare these symbols locally as weak so that the file containing
|
|
|
|
their definitions (along with a lot of other stuff) isn't sucked in
|
|
|
|
unless they are actually used by other compilation units. This is
|
|
|
|
important to reduce image size for targets with very small amounts
|
|
|
|
of memory. */
|
|
|
|
#ifdef _REENT_SMALL
|
2022-05-17 20:39:35 +02:00
|
|
|
extern __FILE __sf[3] _ATTRIBUTE ((weak));
|
|
|
|
#endif
|
2009-04-21 18:38:53 +00:00
|
|
|
|
2022-05-03 14:51:55 +02:00
|
|
|
struct _reent __ATTRIBUTE_IMPURE_DATA__ _impure_data = _REENT_INIT (_impure_data);
|
2004-09-15 21:44:39 +00:00
|
|
|
#ifdef __CYGWIN__
|
2022-05-03 14:51:55 +02:00
|
|
|
extern struct _reent reent_data __attribute__ ((alias("_impure_data")));
|
2004-09-15 21:44:39 +00:00
|
|
|
#endif
|
2022-05-03 14:51:55 +02:00
|
|
|
struct _reent *__ATTRIBUTE_IMPURE_PTR__ _impure_ptr = &_impure_data;
|