From cb46b78b2ec0179666012e2d85014236c2f5385b Mon Sep 17 00:00:00 2001 From: Hendrik Leppkes Date: Tue, 14 Jun 2016 17:02:40 +0200 Subject: [PATCH] os_support: use the appropriate stat functions matching the stat type The stat struct is defined to stati64, which requires using the appropriate wstati/stati functions as well. Fixes a whole bunch of compiler warnings as well as build breakage with the decklink avdevice. Fixes trac #5640 --- libavformat/os_support.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/os_support.h b/libavformat/os_support.h index 9e312a5740..caf1a2fab4 100644 --- a/libavformat/os_support.h +++ b/libavformat/os_support.h @@ -203,7 +203,7 @@ fallback: \ } DEF_FS_FUNCTION2(access, _waccess, _access, int) -DEF_FS_FUNCTION2(stat, _wstat64, _stat64, struct stat*) +DEF_FS_FUNCTION2(stat, _wstati64, _stati64, struct stat*) static inline int win32_rename(const char *src_utf8, const char *dest_utf8) {