Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/utils/libhack Override localeconv_l as well, when pr...
details: https://anonhg.NetBSD.org/src/rev/981281cc4727
branches: trunk
changeset: 786177:981281cc4727
user: joerg <joerg%NetBSD.org@localhost>
date: Thu Apr 18 16:25:55 2013 +0000
description:
Override localeconv_l as well, when providing an alternative
implementation of localeconv.
diffstat:
distrib/utils/libhack/localeconv.c | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diffs (36 lines):
diff -r 63a1b69a5f37 -r 981281cc4727 distrib/utils/libhack/localeconv.c
--- a/distrib/utils/libhack/localeconv.c Thu Apr 18 13:40:25 2013 +0000
+++ b/distrib/utils/libhack/localeconv.c Thu Apr 18 16:25:55 2013 +0000
@@ -1,10 +1,11 @@
-/* $NetBSD: localeconv.c,v 1.3 2003/07/26 17:07:36 salo Exp $ */
+/* $NetBSD: localeconv.c,v 1.4 2013/04/18 16:25:55 joerg Exp $ */
/*
* Written by J.T. Conklin <jtc%NetBSD.org@localhost>.
* Public domain.
*/
+#define _NETBSD_SOURCE
#include <sys/cdefs.h>
#include <sys/localedef.h>
#include <locale.h>
@@ -20,7 +21,7 @@
* Fixed in the "C" locale.
*/
struct lconv *
-localeconv()
+localeconv(void)
{
static struct lconv ret = {
/* char *decimal_point */ ".",
@@ -45,3 +46,10 @@
return (&ret);
}
+
+/* ARGSUSED */
+struct lconv *
+localeconv_l(locale_t loc)
+{
+ return localeconv();
+}
Home |
Main Index |
Thread Index |
Old Index