• R/O
  • HTTP
  • SSH
  • HTTPS

ffmpeg_saccubus: Commit

さきゅばす/いんきゅばす用ffmpeg


Commit MetaInfo

Revision8c1051b3b0d571aa78592de58197aa8fb8f3fc2c (tree)
Zeit2011-09-13 00:37:58
AutorOWATA orz <orz-@user...>
Commiteryukihane

Log Message

Windows MinGW環境ビルドエラー対応(Windows7 Mingw32 gcc4.5.2)

Ändern Zusammenfassung

Diff

--- a/libavfilter/vf_vhext.c
+++ b/libavfilter/vf_vhext.c
@@ -15,13 +15,16 @@
1515 #include <stdio.h>
1616 #include <ctype.h>
1717
18-#ifdef HAVE_DLFCN_H
18+#if HAVE_DLFCN_H
1919 #include <dlfcn.h>
2020 #else
2121 //dlfcn.hの無いWindows Mingw環境用
22-#define dlopen(a) ((void*)LoadLibrary(a))
22+#include <windows.h>
23+#define dlopen(a,b) ((void*)LoadLibrary(a))
2324 #define dlsym(a,b) ((void*)GetProcAddress((HMODULE)(a),(b)))
2425 #define dlclose(a) FreeLibrary((HMODULE)(a));
26+#define dlerror() "dlerror()"
27+#define RTLD_NOW 0
2528 #endif
2629
2730 //デリミタ。MEncoder側とは同じにしといた方がよさそう。
Show on old repository browser