diff options
Diffstat (limited to 'include/shlib-compat.h')
-rw-r--r-- | include/shlib-compat.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/include/shlib-compat.h b/include/shlib-compat.h index c91e6ce489..f0673e7096 100644 --- a/include/shlib-compat.h +++ b/include/shlib-compat.h @@ -52,10 +52,15 @@ shlib-versions if that is newer. */ # define versioned_symbol(lib, local, symbol, version) \ - versioned_symbol2 (local, symbol, VERSION_##lib##_##version) -# define versioned_symbol2(local, symbol, name) \ + versioned_symbol_1 (local, symbol, VERSION_##lib##_##version) +# define versioned_symbol_1(local, symbol, name) \ default_symbol_version (local, symbol, name) +# define compat_symbol(lib, local, symbol, version) \ + compat_symbol_1 (local, symbol, VERSION_##lib##_##version) +# define compat_symbol_1(local, symbol, name) \ + symbol_version (local, symbol, name) + #else /* Not compiling ELF shared libraries at all, so never any old versions. */ @@ -65,6 +70,9 @@ # define versioned_symbol(lib, local, symbol, version) \ weak_alias (local, symbol) +/* This should not appear outside `#if SHLIB_COMPAT (...)'. */ +# define compat_symbol(lib, local, symbol, version) ... + #endif |