summary refs log tree commit diff
path: root/locale/localeconv.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-05-30 20:37:26 +0000
committerUlrich Drepper <drepper@redhat.com>2000-05-30 20:37:26 +0000
commit9b014809fae75a2019975ff61d13eb66249e3491 (patch)
treedba39c3e1799611dbd403f7262452d755ca69f99 /locale/localeconv.c
parenta907bff941ef38b90dc8a69a56ed7374e3fe5c4c (diff)
downloadglibc-9b014809fae75a2019975ff61d13eb66249e3491.tar.gz
glibc-9b014809fae75a2019975ff61d13eb66249e3491.tar.xz
glibc-9b014809fae75a2019975ff61d13eb66249e3491.zip
Update.
	* locale/Versions [libc] (GLIBC_2.2): Add localeconv.
	* locale/localeconv.c: Make function versioned (with same definition).
Diffstat (limited to 'locale/localeconv.c')
-rw-r--r--locale/localeconv.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/locale/localeconv.c b/locale/localeconv.c
index 79a88ac83b..0f545370f7 100644
--- a/locale/localeconv.c
+++ b/locale/localeconv.c
@@ -18,10 +18,11 @@
 
 #include <locale.h>
 #include "localeinfo.h"
+#include <shlib-compat.h>
 
 /* Return monetary and numeric information about the current locale.  */
 struct lconv *
-localeconv (void)
+__localeconv (void)
 {
   static struct lconv result;
 
@@ -56,3 +57,9 @@ localeconv (void)
 
   return &result;
 }
+
+versioned_symbol (libc, __localeconv, localeconv, GLIBC_2_2);
+#if SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)
+strong_alias (__localeconv, __localeconv20)
+compat_symbol (libc, __localeconv20, localeconv, GLIBC_2_0);
+#endif