summaryrefslogtreecommitdiffstats
path: root/lib/eu-config.h
diff options
context:
space:
mode:
authorJan Kratochvil <[email protected]>2013-07-19 23:51:30 +0200
committerJan Kratochvil <[email protected]>2013-07-19 23:51:30 +0200
commit71052762b42f01cd8efe4842c5f68068c9313322 (patch)
treef53c175873a53ae10630b109d69c30bf586be5fd /lib/eu-config.h
parentf439a06ac16e5bfea0fbb6f924c296966b16be0a (diff)
parent934d36cb5fec8156fab96bcdf3939a20ff7d473f (diff)
Merge branch 'master' into portable
Conflicts: src/readelf.c
Diffstat (limited to 'lib/eu-config.h')
-rw-r--r--lib/eu-config.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/eu-config.h b/lib/eu-config.h
index ca8ba54a..d89f3a8a 100644
--- a/lib/eu-config.h
+++ b/lib/eu-config.h
@@ -181,12 +181,18 @@ hakmem_popcount (unsigned int x)
".symver _compat." #version "." #name "," #name "@" #version);
# define NEW_VERSION(name, version) \
asm (".symver " #name "," #name "@@@" #version);
+# define COMPAT_VERSION_NEWPROTO(name, version, prefix) \
+ asm (".symver _compat." #version "." #name "," #name "@" #version); \
+ __typeof (_compat_##prefix##_##name) _compat_##prefix##_##name \
+ asm ("_compat." #version "." #name);
# define COMPAT_VERSION(name, version, prefix) \
asm (".symver _compat." #version "." #name "," #name "@" #version); \
__typeof (name) _compat_##prefix##_##name asm ("_compat." #version "." #name);
#else
# define OLD_VERSION(name, version) /* Nothing for static linking. */
# define NEW_VERSION(name, version) /* Nothing for static linking. */
+# define COMPAT_VERSION_NEWPROTO(name, version, prefix) \
+ error "should use #ifdef SHARED"
# define COMPAT_VERSION(name, version, prefix) error "should use #ifdef SHARED"
#endif