(reent_data): Export.
* lib/_cygwin_crt0_common.cc (_impure_ptr): Drop entirely. Don't
initialize _impure_ptr or u->impure_ptr_ptr.
+2004-09-16 Corinna Vinschen <corinna@vinschen.de>
+
+ * cygwin.din (_impure_ptr): Don't export.
+ (reent_data): Export.
+ * lib/_cygwin_crt0_common.cc (_impure_ptr): Drop entirely. Don't
+ initialize _impure_ptr or u->impure_ptr_ptr.
+
2004-09-15 Corinna Vinschen <corinna@vinschen.de>
* cygwin.din (_impure_ptr): Export.
_check_for_executable DATA
_ctype_ DATA
_daylight DATA
-_impure_ptr DATA
_sys_errlist DATA
sys_errlist = _sys_errlist DATA
_sys_nerr DATA
optind DATA
optopt DATA
optreset DATA
+reent_data DATA
_alloca NOSIGFE
dll_entry@12 NOSIGFE
__assert SIGFE
#include <reent.h>
#include <stdlib.h>
-/* Avoid an info message from linker when linking applications. */
-extern __declspec(dllimport) struct _reent *_impure_ptr;
-
#undef environ
extern "C"
u->ctors = &__CTOR_LIST__;
u->dtors = &__DTOR_LIST__;
u->envptr = &environ;
- if (uwasnull)
- _impure_ptr = u->impure_ptr; /* Use field initialized in newer DLLs. */
- else
- u->impure_ptr_ptr = &_impure_ptr; /* Older DLLs need this. */
u->forkee = 0; /* This should only be set in dcrt0.cc
when the process is actually forked */