1
0
mirror of https://github.com/soarqin/DSP_Mods.git synced 2025-12-09 18:13:31 +08:00

Work in progress

This commit is contained in:
2023-07-11 21:58:58 +08:00
parent bf6808f565
commit cb88f268f6
11 changed files with 209 additions and 75 deletions

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)

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;
}