Compatibility with Watcom's DLL exports for plugins

This commit is contained in:
z3APA3A committed 2016-12-10 03:56:11 +03:00
1 parent 88263ebde9
commit c650d32206
4 files changed
+22 -34

No files matched your search

+5 -6
View File
@@ -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;