diff options
author | Christopher Faylor <me@cgf.cx> | 2004-09-16 07:49:03 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2004-09-16 07:49:03 +0400 |
commit | 22a1a24f10203d4a361cb6b1742d2b04f524e221 (patch) | |
tree | 9d0a715e2bdfd4cff5da512290a67cead977cd90 /winsup/cygwin/lib/_cygwin_crt0_common.cc | |
parent | 181cb05147a5590048f29f246f4b146e6f3b8112 (diff) |
* 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.
Diffstat (limited to 'winsup/cygwin/lib/_cygwin_crt0_common.cc')
-rw-r--r-- | winsup/cygwin/lib/_cygwin_crt0_common.cc | 4 |
1 files changed, 3 insertions, 1 deletions
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 <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 (); |