diff options
author | Martin Storsjö <martin@martin.st> | 2017-08-24 22:07:04 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2017-08-31 14:22:06 +0300 |
commit | abf1c058d1bd0ed1b820ea5e501a4484756f00b0 (patch) | |
tree | f2fad10a28333210b238629315577204491576d5 /libavcodec/jpegtables.h | |
parent | e41daa62465036ad36ad0bd14e4936e848d7f07e (diff) | |
download | ffmpeg-abf1c058d1bd0ed1b820ea5e501a4484756f00b0.tar.gz |
msvc: Properly specify dllexport for data symbols shared across dll boundaries
We currently only have exported data symbols within libavcodec, but
the concept is easy to extend to other libraries if necessary.
The attribute declaration needs to be in a private header though,
since we can't use CONFIG_SHARED in public installed headers.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavcodec/jpegtables.h')
-rw-r--r-- | libavcodec/jpegtables.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libavcodec/jpegtables.h b/libavcodec/jpegtables.h index 1a909bef7a..44c2acabc4 100644 --- a/libavcodec/jpegtables.h +++ b/libavcodec/jpegtables.h @@ -23,18 +23,18 @@ #include <stdint.h> -#include "libavutil/internal.h" +#include "internal.h" -extern av_export const uint8_t avpriv_mjpeg_bits_dc_luminance[]; -extern av_export const uint8_t avpriv_mjpeg_val_dc[]; +extern av_export_avcodec const uint8_t avpriv_mjpeg_bits_dc_luminance[]; +extern av_export_avcodec const uint8_t avpriv_mjpeg_val_dc[]; -extern av_export const uint8_t avpriv_mjpeg_bits_dc_chrominance[]; +extern av_export_avcodec const uint8_t avpriv_mjpeg_bits_dc_chrominance[]; -extern av_export const uint8_t avpriv_mjpeg_bits_ac_luminance[]; -extern av_export const uint8_t avpriv_mjpeg_val_ac_luminance[]; +extern av_export_avcodec const uint8_t avpriv_mjpeg_bits_ac_luminance[]; +extern av_export_avcodec const uint8_t avpriv_mjpeg_val_ac_luminance[]; -extern av_export const uint8_t avpriv_mjpeg_bits_ac_chrominance[]; -extern av_export const uint8_t avpriv_mjpeg_val_ac_chrominance[]; +extern av_export_avcodec const uint8_t avpriv_mjpeg_bits_ac_chrominance[]; +extern av_export_avcodec const uint8_t avpriv_mjpeg_val_ac_chrominance[]; void ff_mjpeg_build_huffman_codes(uint8_t *huff_size, uint16_t *huff_code, const uint8_t *bits_table, |