Fix symbol version compat wrappers on systems with export prefixes
authorMåns Rullgård <mans@mansr.com>
Tue, 15 Jun 2010 15:24:28 +0000 (15:24 +0000)
committerMåns Rullgård <mans@mansr.com>
Tue, 15 Jun 2010 15:24:28 +0000 (15:24 +0000)
Originally committed as revision 23615 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavutil/internal.h

index 2d744df..b361f72 100644 (file)
 #endif
 
 #if HAVE_SYMVER_ASM_LABEL
-#   define FF_SYMVER(type, name, args, ver)             \
-    type ff_##name args __asm__ (#name "@" ver);        \
+#   define FF_SYMVER(type, name, args, ver)                     \
+    type ff_##name args __asm__ (EXTERN_PREFIX #name "@" ver);  \
     type ff_##name args
 #elif HAVE_SYMVER_GNU_ASM
-#   define FF_SYMVER(type, name, args, ver)             \
-    __asm__ (".symver ff_" #name "," #name "@" ver);    \
-    type ff_##name args;                                \
+#   define FF_SYMVER(type, name, args, ver)                             \
+    __asm__ (".symver ff_" #name "," EXTERN_PREFIX #name "@" ver);      \
+    type ff_##name args;                                                \
     type ff_##name args
 #endif