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:
parent
9980ed9527
commit
6f6583afed
@ -77,7 +77,10 @@
|
|||||||
# endif
|
# endif
|
||||||
# endif
|
# endif
|
||||||
#ifndef DM_EXPORT_NEW_SYMBOL
|
#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) \
|
#define DM_EXPORT_SYMBOL(func, ver) \
|
||||||
__asm__(".symver " #func "_v" #ver ", " #func "@DM_" #ver );
|
__asm__(".symver " #func "_v" #ver ", " #func "@DM_" #ver );
|
||||||
#define DM_EXPORT_SYMBOL_BASE(func) \
|
#define DM_EXPORT_SYMBOL_BASE(func) \
|
||||||
|
Loading…
Reference in New Issue
Block a user