DLLEntryPoint is a collective name, not what linker looks for. However,
if we explicitly intruct the linker to set entry point, then we become obliged to initialize run-time library. Instead we can pick name run-time will call and such name is DllMain. Note that this applies to both "native" Win32 environment and Cygwin:-)
This commit is contained in:
parent
07d80f6f35
commit
00555c2f2f
@ -571,13 +571,12 @@ void OPENSSL_cpuid_setup()
|
|||||||
void OPENSSL_cpuid_setup() {}
|
void OPENSSL_cpuid_setup() {}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _DLL
|
#if (defined(_WIN32) || defined(__CYGWIN__)) && defined(_DLL)
|
||||||
#ifdef OPENSSL_SYS_WIN32
|
|
||||||
|
|
||||||
/* All we really need to do is remove the 'error' state when a thread
|
/* All we really need to do is remove the 'error' state when a thread
|
||||||
* detaches */
|
* detaches */
|
||||||
|
|
||||||
BOOL WINAPI DLLEntryPoint(HINSTANCE hinstDLL, DWORD fdwReason,
|
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason,
|
||||||
LPVOID lpvReserved)
|
LPVOID lpvReserved)
|
||||||
{
|
{
|
||||||
switch(fdwReason)
|
switch(fdwReason)
|
||||||
@ -597,8 +596,6 @@ BOOL WINAPI DLLEntryPoint(HINSTANCE hinstDLL, DWORD fdwReason,
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void OpenSSLDie(const char *file,int line,const char *assertion)
|
void OpenSSLDie(const char *file,int line,const char *assertion)
|
||||||
{
|
{
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user