Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-02-20 05:53:55 +0300
committerChristopher Faylor <me@cgf.cx>2001-02-20 05:53:55 +0300
commitf97e7d754c03d1a2b09a0da9fe7564ad445b7476 (patch)
tree076a15f743f5873d2f73dbc84a3dfda860560296 /winsup/cygwin/dcrt0.cc
parent72a82eaa20e2b2b40d669bb31b85df5e56f26916 (diff)
* cygwin.din: Export rand48 functions.
* thread.cc (MTinterface::Init): Remove the initialization of `reent_data'. * dcrt0.cc: Add the initalizer to the declaration of `reent_data'. * include/cygwin/version.h: Bump CYGWIN_VERSION_API_MINOR to 35.
Diffstat (limited to 'winsup/cygwin/dcrt0.cc')
-rw-r--r--winsup/cygwin/dcrt0.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc
index 1e1aeaf62..553931338 100644
--- a/winsup/cygwin/dcrt0.cc
+++ b/winsup/cygwin/dcrt0.cc
@@ -85,7 +85,7 @@ extern "C"
char ***main_environ;
/* __progname used in getopt error message */
char *__progname = NULL;
- struct _reent reent_data;
+ struct _reent reent_data = _REENT_INIT(reent_data);
struct per_process __cygwin_user_data =
{/* initial_sp */ 0, /* magic_biscuit */ 0,
/* dll_major */ CYGWIN_VERSION_DLL_MAJOR,
@@ -765,6 +765,9 @@ dll_crt0_1 ()
if (!old_title && GetConsoleTitle (title_buf, TITLESIZE))
old_title = title_buf;
+ /* Initialize locale */
+ locale_init ();
+
/* Allocate fdtab */
dtable_init ();