Signed-off-by: Rémi Bernon rbernon@codeweavers.com --- dlls/windowscodecs/unix_lib.c | 2 ++ dlls/windowscodecs/wincodecs_private.h | 1 + 2 files changed, 3 insertions(+)
diff --git a/dlls/windowscodecs/unix_lib.c b/dlls/windowscodecs/unix_lib.c index 268a1cd9d16..9255b3ed243 100644 --- a/dlls/windowscodecs/unix_lib.c +++ b/dlls/windowscodecs/unix_lib.c @@ -67,6 +67,7 @@ HRESULT CDECL stream_write(IStream *stream, const void *buffer, ULONG write, ULO return win32_funcs->stream_write(stream, buffer, write, bytes_written); }
+#ifndef WINCODECS_CUSTOM_UNIXLIB HRESULT CDECL decoder_create(const CLSID *decoder_clsid, struct decoder_info *info, struct decoder **result) { if (IsEqualGUID(decoder_clsid, &CLSID_WICPngDecoder)) @@ -97,6 +98,7 @@ HRESULT CDECL encoder_create(const CLSID *encoder_clsid, struct encoder_info *in
return E_NOTIMPL; } +#endif /* WINCODECS_CUSTOM_UNIXLIB */
static const struct unix_funcs unix_funcs = { decoder_create, diff --git a/dlls/windowscodecs/wincodecs_private.h b/dlls/windowscodecs/wincodecs_private.h index 453bc58cca6..61c3b95a7dd 100644 --- a/dlls/windowscodecs/wincodecs_private.h +++ b/dlls/windowscodecs/wincodecs_private.h @@ -396,6 +396,7 @@ struct encoder_funcs void (CDECL *destroy)(struct encoder* This); };
+HRESULT CDECL encoder_create(const CLSID *encoder_clsid, struct encoder_info *info, struct encoder **result); HRESULT CDECL encoder_initialize(struct encoder* This, IStream *stream); HRESULT CDECL encoder_get_supported_format(struct encoder* This, GUID *pixel_format, DWORD *bpp, BOOL *indexed); HRESULT CDECL encoder_create_frame(struct encoder* This, const struct encoder_frame *frame);