about summary refs log tree commit diff
path: root/include/shlib-compat.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2000-03-22 06:04:32 +0000
committerRoland McGrath <roland@gnu.org>2000-03-22 06:04:32 +0000
commit2ae13e200c9d032a98e184f7aca5288d572c7251 (patch)
treef017d31d4475f9d50666676c5e5f2b1fe5383b13 /include/shlib-compat.h
parent42f76b6bd7a3134573ddd0661e89fe7b23540de2 (diff)
downloadglibc-2ae13e200c9d032a98e184f7aca5288d572c7251.tar.gz
glibc-2ae13e200c9d032a98e184f7aca5288d572c7251.tar.xz
glibc-2ae13e200c9d032a98e184f7aca5288d572c7251.zip
(compat_symbol): New macro.
	* sysdeps/gnu/siglist.c: Use new SHLIB_COMPAT convention, and use
	compat_symbol macro.
Diffstat (limited to 'include/shlib-compat.h')
-rw-r--r--include/shlib-compat.h12
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