mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
Compatibility with Watcom's DLL exports for plugins
This commit is contained in:
1 parent
88263ebde9
commit
c650d32206
4 files changed
+22
-34
No files matched your search
@@ -151,8 +151,6 @@ static int restore_old_table(void * v)
|
||||
/*-------------------------------------------------------------------*/
|
||||
|
||||
#ifdef _WIN32
|
||||
__declspec(dllexport) int start(struct pluginlink * pluginlink,
|
||||
int argc, char** argv);
|
||||
BOOL WINAPI DllMain( HINSTANCE hModule,
|
||||
DWORD ul_reason_for_call,
|
||||
LPVOID lpReserved
|
||||
@@ -165,17 +163,18 @@ BOOL WINAPI DllMain( HINSTANCE hModule,
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
__declspec(dllexport) int start(struct pluginlink * pluginlink,
|
||||
int argc, char** argv)
|
||||
|
||||
#else
|
||||
|
||||
int start(struct pluginlink * pluginlink,
|
||||
int argc, char** argv);
|
||||
|
||||
int argc, char** argv)
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
/*---------------------- start plugin init ------------------------------ */
|
||||
int start(struct pluginlink * pluginlink, int argc, char** argv)
|
||||
{
|
||||
FILE *f=NULL;
|
||||
|
||||
|
||||
Reference in new issue
Block a user