diff options
Diffstat (limited to 'src/dlfcn.c')
-rw-r--r-- | src/dlfcn.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/dlfcn.c b/src/dlfcn.c index c128579..5ddf1a7 100644 --- a/src/dlfcn.c +++ b/src/dlfcn.c | |||
@@ -955,4 +955,15 @@ BOOL WINAPI DllMain( HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved ) | |||
955 | (void) lpvReserved; | 955 | (void) lpvReserved; |
956 | return TRUE; | 956 | return TRUE; |
957 | } | 957 | } |
958 | |||
959 | /* For non-debug DLL builds defines DLL entry point which avoids using CRT library */ | ||
960 | #if !defined( _DEBUG ) | ||
961 | #ifdef __cplusplus | ||
962 | extern "C" | ||
963 | #endif | ||
964 | BOOL WINAPI _DllMainCRTStartup( HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved ) | ||
965 | { | ||
966 | return DllMain( hinstDLL, fdwReason, lpvReserved ); | ||
967 | } | ||
968 | #endif | ||
958 | #endif | 969 | #endif |