* cygwin.din (_impure_ptr): Export.

(reent_data): Don't export.
* dcrt0.cc (reent_data): Drop.
(__cygwin_user_data): Initialize impure_ptr as GLOBAL_REENT.
(_dll_crt0): Initialize _impure_ptr as GLOBAL_REENT.
* lib/_cygwin_crt0_common.cc (_impure_ptr): Drop.  Declare extern as dllimport
instead.
This commit is contained in:
Christopher Faylor
2004-09-16 03:49:03 +00:00
parent 181cb05147
commit 22a1a24f10
4 changed files with 17 additions and 6 deletions

View File

@ -15,6 +15,9 @@ details. */
#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"
@ -23,7 +26,6 @@ char **environ;
int cygwin_attach_dll (HMODULE, MainFunc);
int cygwin_attach_noncygwin_dll (HMODULE, MainFunc);
int main (int, char **, char **);
struct _reent *_impure_ptr;
int _fmode;
void _pei386_runtime_relocator ();