1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

libdm: fix compiling with older gcc

This commit is contained in:
Zdenek Kabelac 2021-04-06 22:31:23 +02:00
parent 9980ed9527
commit 6f6583afed

View File

@ -77,7 +77,10 @@
# endif
# endif
#ifndef DM_EXPORT_NEW_SYMBOL
#define DM_EXPORT_NEW_SYMBOL(rettype, func, ver) rettype func
#define DM_EXPORT_NEW_SYMBOL(rettype, func, ver) \
__typeof__(func) func ##_v ##ver; \
__asm__(".symver " #func "_v" #ver ", " #func "@@DM_" #ver ); \
rettype func ##_v ##ver
#define DM_EXPORT_SYMBOL(func, ver) \
__asm__(".symver " #func "_v" #ver ", " #func "@DM_" #ver );
#define DM_EXPORT_SYMBOL_BASE(func) \