diff --git a/src/avisynth.h b/src/avisynth.h index 7e15f2133..fa3fd1cdc 100644 --- a/src/avisynth.h +++ b/src/avisynth.h @@ -81,6 +81,8 @@ typedef long PixOffset; #define _RPT4(a,b,c,d,e,f) ((void)0) #define _ASSERTE(x) assert(x) + // not sure why it's used but not defined, so... + #define _ASSERT(x) assert(x) #include #endif diff --git a/src/meson.build b/src/meson.build index 1238f6dea..7db5092dd 100644 --- a/src/meson.build +++ b/src/meson.build @@ -211,6 +211,15 @@ foreach opt: opt_src endif endforeach +# avisynth for windows build +if host_machine.system() == 'windows' + aegisub_src += [ + 'audio_provider_avs.cpp', + 'video_provider_avs.cpp', + ] +endif + + aegisub_cpp_pch = ['include/agi_pre.h'] aegisub_c_pch = ['include/agi_pre_c.h']