]> git.sesse.net Git - ffmpeg/commit
libavcodec: Don't use dllexport, only dllimport when building DLLs
authorMartin Storsjö <martin@martin.st>
Thu, 14 Sep 2017 05:33:05 +0000 (08:33 +0300)
committerMartin Storsjö <martin@martin.st>
Sun, 19 Nov 2017 20:01:38 +0000 (22:01 +0200)
commit3152058bf1dca318898550efacf0286f4836cae6
tree26aeb52003df2933b15ef218112769224b6da774
parentbad7ce1d82f0b7da55086b8c6124eff0d35a1b1a
libavcodec: Don't use dllexport, only dllimport when building DLLs

The only purpose of dllexport (which is set while building the library
that exports the symbols) is to have the linker automatically
export such symbols into a DLL without using a def file - it doesn't
affect the generated code.

For both MSVC and mingw builds, this isn't essential since we override
what symbols to export via an autogenerated def file instead.

Update a comment in configure to refer to the right concept.

With lld, this avoids warnings about duplicate export directives,
when some symbols are requested to be exported both via dllexport
attributes and via the autogenerated def file.

This also reduces the number of lines of code marginally.

Signed-off-by: Martin Storsjö <martin@martin.st>
configure
libavcodec/internal.h