mirror of https://github.com/FFmpeg/FFmpeg.git
Add one copy of the function into each of the libraries, similarly to what we do for log2_tab. When using static libs, only one copy of the file_open.o object file gets included, while when using shared libraries, each of them get a copy of its own. This fixes DLL builds with a statically linked C runtime, where each DLL effectively has got its own instance of the C runtime, where file descriptors can't be shared across runtimes. On systems not using msvcrt, the function is not duplicated. Signed-off-by: Martin Storsjö <martin@martin.st>pull/37/head
parent
a76d0cdf21
commit
e743e7ae6e
7 changed files with 13 additions and 0 deletions
@ -0,0 +1 @@ |
||||
#include "libavutil/file_open.c" |
@ -0,0 +1 @@ |
||||
#include "libavutil/file_open.c" |
@ -0,0 +1 @@ |
||||
#include "libavutil/file_open.c" |
Loading…
Reference in new issue