Revision a77caa4d

View differences:

configure
1072 1072
    SLIBNAME_WITH_VERSION='$(SLIBPREF)$(NAME)-$(LIBVERSION)$(SLIBSUF)'
1073 1073
    SLIBNAME_WITH_MAJOR='$(SLIBPREF)$(NAME)-$(LIBMAJOR)$(SLIBSUF)'
1074 1074
    SLIB_EXTRA_CMD="-lib /machine:i386 /def:\$(@:${SLIBSUF}=.def)"
1075
    SHFLAGS="-shared -Wl,--output-def,\$(@:${SLIBSUF}=.def),--out-implib,lib\$(SLIBNAME:\$(SLIBSUF)=.dll.a)"
1075
    SHFLAGS="-shared -Wl,--output-def,\$(@:${SLIBSUF}=.def),--out-implib,lib\$(SLIBNAME:\$(SLIBSUF)=.dll.a) -Wl,--enable-runtime-pseudo-reloc"
1076 1076
fi
1077 1077

  
1078 1078
# Combine FFLDFLAGS and the LDFLAGS environment variable.
libavutil/common.h
58 58
#define UINT64_C(c)    (c ## ULL)
59 59
#endif
60 60

  
61
#if defined(__MINGW32__) && !defined(BUILD_AVUTIL) && defined(BUILD_SHARED_AV)
62
#  define FF_IMPORT_ATTR __declspec(dllimport)
63
#else
64
#  define FF_IMPORT_ATTR
65
#endif
66

  
67

  
68 61
#ifdef HAVE_AV_CONFIG_H
69 62
/* only include the following when compiling package */
70 63
#    include "internal.h"
......
83 76
#define FFSWAP(type,a,b) do{type SWAP_tmp= b; b= a; a= SWAP_tmp;}while(0)
84 77

  
85 78
/* misc math functions */
86
extern FF_IMPORT_ATTR const uint8_t ff_log2_tab[256];
79
extern const uint8_t ff_log2_tab[256];
87 80

  
88 81
static inline int av_log2(unsigned int v)
89 82
{
libavutil/internal.h
229 229
#    define FASTDIV(a,b)   ((a)/(b))
230 230
#endif
231 231

  
232
extern FF_IMPORT_ATTR const uint8_t ff_sqrt_tab[128];
232
extern const uint8_t ff_sqrt_tab[128];
233 233

  
234 234
static inline int ff_sqrt(int a)
235 235
{

Also available in: Unified diff