1 /* Copyright (C) 2003 Manuel Novoa III
3 * This library is free software; you can redistribute it and/or
4 * modify it under the terms of the GNU Library General Public
5 * License as published by the Free Software Foundation; either
6 * version 2 of the License, or (at your option) any later version.
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * Library General Public License for more details.
13 * You should have received a copy of the GNU Library General Public
14 * License along with this library; if not, write to the Free
15 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 * Supply some weaks for use by strerror*(), etc.
22 * Add some hidden names to support locale-enabled libstd++.
32 /**********************************************************************/
33 #ifdef L___uClibc_dgettext
35 char *__uClibc_dgettext(const char *domainname,
38 return (char *) msgid;
41 weak_alias(__uClibc_dgettext, __dgettext)
44 /**********************************************************************/
45 #ifdef L___uClibc_dcgettext
47 char *__uClibc_dcgettext(const char *domainname,
48 const char *msgid, int category)
50 return (char *) msgid;
53 weak_alias(__uClibc_dcgettext, __dcgettext)
56 /**********************************************************************/
57 #ifdef L___uClibc_textdomain
59 char *__uClibc_textdomain(const char *domainname)
61 static const char default_str[] = "messages";
63 if (domainname && *domainname && strcmp(domainname, default_str)) {
67 return (char *) default_str;
70 weak_alias(__uClibc_textdomain, __textdomain)
73 /**********************************************************************/
74 #ifdef L___uClibc_bindtextdomain
76 char *__uClibc_bindtextdomain(const char *domainname, const char *dirname)
78 static const char dir[] = "/";
80 if (!domainname || !*domainname
83 && ((dirname[0] != '/') || dirname[1])
85 && strcmp(dirname, dir)
96 weak_alias(__uClibc_bindtextdomain, __bindtextdomain)
99 /**********************************************************************/