Martin Storsjö <mar...@martin.st> writes:

> diff --git a/libavcodec/internal.h b/libavcodec/internal.h
> index e5b1958..106b8e9 100644
> --- a/libavcodec/internal.h
> +++ b/libavcodec/internal.h
> @@ -29,6 +29,13 @@
>  #include "libavutil/mathematics.h"
>  #include "libavutil/pixfmt.h"
>  #include "avcodec.h"
> +#include "config.h"
> +
> +#if defined(_MSC_VER) && CONFIG_SHARED
> +#define attribute_exportdata __declspec(dllimport)
> +#else
> +#define attribute_exportdata
> +#endif

Please call this av_export or similar.  It's not really specific to
data, although it is only _required_ there.

It might be a good idea to put this in libavutil so we can use it
elsewhere should the need arise.

-- 
Måns Rullgård
m...@mansr.com
_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to