Skip to content

Commit

Permalink
More declaration fixing for scxvid as well
Browse files Browse the repository at this point in the history
  • Loading branch information
myrsloik committed Jul 31, 2024
1 parent 2f8b615 commit 9ef100d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions fieldhint/fieldhint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,9 @@ AVSValue __cdecl Create_FieldHint(AVSValue args, void* user_data, IScriptEnviron

const AVS_Linkage *AVS_linkage = nullptr;

extern "C" __declspec(dllexport) const char* __stdcall AvisynthPluginInit3(IScriptEnvironment* env)
extern "C" __declspec(dllexport) const char* __stdcall AvisynthPluginInit3(IScriptEnvironment* env, const AVS_Linkage *const vectors)
{
AVS_linkage = env->GetAVSLinkage();
AVS_linkage = vectors;
env->AddFunction("FieldHint", "c[ovr]s[show]b", Create_FieldHint, 0);
return 0;
}
Expand Down
4 changes: 2 additions & 2 deletions scxvid/scxvid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ static AVSValue __cdecl Create_SCXvid(AVSValue args, void* user_data, IScriptEnv

const AVS_Linkage *AVS_linkage = nullptr;

extern "C" __declspec(dllexport) const char* __stdcall AvisynthPluginInit2(IScriptEnvironment* env) {
AVS_linkage = env->GetAVSLinkage();
extern "C" __declspec(dllexport) const char* __stdcall AvisynthPluginInit3(IScriptEnvironment* env, const AVS_Linkage *const vectors) {
AVS_linkage = vectors;
env->AddFunction("SCXvid", "c[log]s", Create_SCXvid, 0);
return 0;
};
Expand Down

0 comments on commit 9ef100d

Please sign in to comment.