Skip to content

Instantly share code, notes, and snippets.

@jeeb
Created September 21, 2012 15:36
Show Gist options
  • Save jeeb/3762224 to your computer and use it in GitHub Desktop.
Save jeeb/3762224 to your computer and use it in GitHub Desktop.
ffmpegsource, make mingw-w64 compile
Index: include/ffmscompat.h
===================================================================
--- include/ffmscompat.h (revision 712)
+++ include/ffmscompat.h (working copy)
@@ -39,7 +39,7 @@
# define VERSION_CHECK(LIB, cmp, major, minor, micro, u1, u2, u3) ((LIB) cmp (AV_VERSION_INT(major, minor, micro)))
#endif
-#ifdef _WIN32
+#if defined(_WIN32) && ! defined(__MINGW64_VERSION_MAJOR)
# define snprintf _snprintf
# ifdef __MINGW32__
# define fseeko fseeko64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment