diff options
author | Werner Koch <[email protected]> | 2010-10-28 14:24:52 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2010-10-28 14:24:52 +0000 |
commit | 8c512c3cf0d596eafb708abe3581486894dfe20e (patch) | |
tree | d10f93a9f1e8502301b9d245ba6426ca67de6057 /src/init.c | |
parent | Post release updates (diff) | |
download | libgpg-error-8c512c3cf0d596eafb708abe3581486894dfe20e.tar.gz libgpg-error-8c512c3cf0d596eafb708abe3581486894dfe20e.zip |
Add some code to allow building with MSC.
Diffstat (limited to 'src/init.c')
-rw-r--r-- | src/init.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); |