From d170484afe7116da13cca21dcb5650b411635a7c Mon Sep 17 00:00:00 2001 From: simplxs Date: Sat, 29 Jun 2024 21:05:48 +0800 Subject: [PATCH] linux entry --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 0e07218..56ddc87 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -63,7 +63,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpReserved) return TRUE; } #elif defined(_MAC_PLATFORM_) || defined(_LINUX_PLATFORM_) -int main() +void __attribute__((constructor)) my_init(void) { init(); }