* locale/Versions [libc] (GLIBC_2.2): Add localeconv.
* locale/localeconv.c: Make function versioned (with same definition).
2000-05-30 Ulrich Drepper <drepper@redhat.com>
+ * locale/Versions [libc] (GLIBC_2.2): Add localeconv.
+ * locale/localeconv.c: Make function versioned (with same definition).
+
* elf/Makefile (modules-names): Strip before using it.
2000-05-30 Andreas Jaeger <aj@suse.de>
testobj1_1 failobj constload2 constload3 \
dep1 dep2 dep3 dep4 $(modules-vis-$(have-protected))
modules-vis-yes = vismod1 vismod2 vismod3
-modules-names := $(strip $(module-names))
-extra-objs += $(modules-names:=.os)
+extra-objs += $(addsuffix .os,$(strip $(modules-names)))
include ../Rules
$(objpfx)ldconfig: $(ldconfig-modules:%=$(objpfx)%.o)
-test-modules = $(addprefix $(objpfx),$(addsuffix .so,$(modules-names)))
-generated += $(addsuffix .so,$(modules-names))
+test-modules = $(addprefix $(objpfx),$(addsuffix .so,$(strip $(modules-names))))
+generated += $(addsuffix .so,$(strip $(modules-names)))
$(objpfx)testobj1.so: $(libdl)
$(objpfx)testobj1_1.so: $(objpfx)testobj1.so $(libdl)
# functions from the experimental locale implementation
__*_l; __newlocale; __duplocale; __freelocale;
}
+ GLIBC_2.2 {
+ # The data structure changed.
+ localeconv;
+ }
}
#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;
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