Work in progress

This commit is contained in:
soarqin committed 2023-07-11 21:58:58 +08:00
1 parent bf6808f565
commit cb88f268f6
11 files changed
+209 -75

No files matched your search

+1 -1
View File
@@ -7,7 +7,7 @@ add_library(lz4wrap SHARED
lz4/lz4frame.c lz4/lz4frame.h lz4/lz4frame_static.h
lz4/lz4hc.c lz4/lz4hc.h
lz4/xxhash.c lz4/xxhash.h
dllmain.c lz4wrap.c lz4wrap.h)
dllmain.c LZ4Wrap.c LZ4Wrap.h)
target_compile_definitions(lz4wrap PRIVATE LZ4WRAP_EXPORTS)
target_include_directories(lz4wrap PRIVATE lz4)
+2 -1
View File
@@ -9,6 +9,8 @@ BOOL APIENTRY DllMain( HMODULE hModule,
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
DisableThreadLibraryCalls(hModule);
break;
case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH:
case DLL_PROCESS_DETACH:
@@ -16,4 +18,3 @@ BOOL APIENTRY DllMain( HMODULE hModule,
}
return TRUE;
}