From 8c512c3cf0d596eafb708abe3581486894dfe20e Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 28 Oct 2010 14:24:52 +0000 Subject: Add some code to allow building with MSC. --- src/init.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/init.c') diff --git a/src/init.c b/src/init.c index 91abcb0..d1ea44c 100644 --- a/src/init.c +++ b/src/init.c @@ -380,6 +380,10 @@ DllMain (HINSTANCE hinst, DWORD reason, LPVOID reserved) tls_index = TlsAlloc (); if (tls_index == TLS_OUT_OF_INDEXES) return FALSE; +#ifndef _GPG_ERR_HAVE_CONSTRUCTOR + /* If we have not constructors (e.g. MSC) we call it here. */ + _gpg_w32__init_gettext_module (); +#endif /* falltru. */ case DLL_THREAD_ATTACH: tls = LocalAlloc (LPTR, sizeof *tls); -- cgit v1.2.3