macro gymnastics to implement storage kernel, buffer op and complex compute panel
This commit is contained in:
@@ -3,16 +3,9 @@
|
||||
|
||||
#ifdef _WIN32
|
||||
|
||||
// clang-format off
|
||||
|
||||
BOOL APIENTRY DllMain(
|
||||
HMODULE hModule,
|
||||
DWORD ul_reason_for_call,
|
||||
LPVOID lpReserved
|
||||
)
|
||||
BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
|
||||
{
|
||||
switch (ul_reason_for_call)
|
||||
{
|
||||
switch (ul_reason_for_call) {
|
||||
case DLL_PROCESS_ATTACH:
|
||||
return 1;
|
||||
case DLL_THREAD_ATTACH:
|
||||
@@ -21,9 +14,9 @@ BOOL APIENTRY DllMain(
|
||||
return 1;
|
||||
case DLL_PROCESS_DETACH:
|
||||
return 1;
|
||||
break;
|
||||
break;
|
||||
}
|
||||
return TRUE;
|
||||
return TRUE;
|
||||
}
|
||||
#else
|
||||
attribute((constructor)) void DllMain()
|
||||
@@ -31,5 +24,3 @@ attribute((constructor)) void DllMain()
|
||||
}
|
||||
|
||||
#endif // _WIN32
|
||||
|
||||
// clang-format on
|
||||
|
||||
Reference in New Issue
Block a user