From 22a1a24f10203d4a361cb6b1742d2b04f524e221 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Thu, 16 Sep 2004 03:49:03 +0000 Subject: * 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. --- winsup/cygwin/lib/_cygwin_crt0_common.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'winsup/cygwin/lib/_cygwin_crt0_common.cc') diff --git a/winsup/cygwin/lib/_cygwin_crt0_common.cc b/winsup/cygwin/lib/_cygwin_crt0_common.cc index f1e724823..935b84f31 100644 --- a/winsup/cygwin/lib/_cygwin_crt0_common.cc +++ b/winsup/cygwin/lib/_cygwin_crt0_common.cc @@ -15,6 +15,9 @@ details. */ #include #include +/* 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 (); -- cgit v1.2.3