summaryrefslogtreecommitdiffstats
path: root/intl/dgettext.c
diff options
context:
space:
mode:
authorClaudio Fontana <sick_soul@users.sourceforge.net>2005-11-01 09:38:51 +0000
committerClaudio Fontana <sick_soul@users.sourceforge.net>2005-11-01 09:38:51 +0000
commitc43b80e61df1aeb6d7872d89baa35a28dd05bd40 (patch)
tree22fb26c4916c45c898c7ddd5ff07cfd73523b152 /intl/dgettext.c
parentc12afffc3d06c2acfc5fab3aa4746d1096f4950a (diff)
downloadidutils-c43b80e61df1aeb6d7872d89baa35a28dd05bd40.tar.gz
idutils-c43b80e61df1aeb6d7872d89baa35a28dd05bd40.tar.bz2
idutils-c43b80e61df1aeb6d7872d89baa35a28dd05bd40.zip
*** empty log message ***
Diffstat (limited to 'intl/dgettext.c')
-rw-r--r--intl/dgettext.c39
1 files changed, 19 insertions, 20 deletions
diff --git a/intl/dgettext.c b/intl/dgettext.c
index 0510c2b..b64b0f5 100644
--- a/intl/dgettext.c
+++ b/intl/dgettext.c
@@ -1,32 +1,33 @@
-/* Implementation of the dgettext(3) function
- Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
+/* Implementation of the dgettext(3) function.
+ Copyright (C) 1995-1997, 2000-2003 Free Software Foundation, Inc.
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2, or (at your option)
+ This program is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Library General Public License as published
+ by the Free Software Foundation; either version 2, or (at your option)
any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ You should have received a copy of the GNU Library General Public
+ License along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+ USA. */
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
-#if defined HAVE_LOCALE_H || defined _LIBC
-# include <locale.h>
-#endif
+#include "gettextP.h"
+
+#include <locale.h>
#ifdef _LIBC
# include <libintl.h>
#else
-# include "libgettext.h"
+# include "libgnuintl.h"
#endif
/* @@ end of prolog @@ */
@@ -37,18 +38,16 @@
prefix. So we have to make a difference here. */
#ifdef _LIBC
# define DGETTEXT __dgettext
-# define DCGETTEXT __dcgettext
+# define DCGETTEXT INTUSE(__dcgettext)
#else
-# define DGETTEXT dgettext__
-# define DCGETTEXT dcgettext__
+# define DGETTEXT libintl_dgettext
+# define DCGETTEXT libintl_dcgettext
#endif
/* Look up MSGID in the DOMAINNAME message catalog of the current
LC_MESSAGES locale. */
char *
-DGETTEXT (domainname, msgid)
- const char *domainname;
- const char *msgid;
+DGETTEXT (const char *domainname, const char *msgid)
{
return DCGETTEXT (domainname, msgid, LC_MESSAGES);
}