Blame gst/gettext.h

Packit Service 963350
/* Convenience header for conditional use of GNU <libintl.h>.
Packit Service 963350
   Copyright (C) 1995-1998, 2000-2002 Free Software Foundation, Inc.
Packit Service 963350
Packit Service 963350
   This program is free software; you can redistribute it and/or modify it
Packit Service 963350
   under the terms of the GNU Library General Public License as published
Packit Service 963350
   by the Free Software Foundation; either version 2, or (at your option)
Packit Service 963350
   any later version.
Packit Service 963350
Packit Service 963350
   This program is distributed in the hope that it will be useful,
Packit Service 963350
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 963350
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service 963350
   Library General Public License for more details.
Packit Service 963350
Packit Service 963350
   You should have received a copy of the GNU Library General Public
Packit Service 963350
   License along with this program; if not, write to the Free Software
Packit Service 963350
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301,
Packit Service 963350
   USA.  */
Packit Service 963350
Packit Service 963350
#ifndef _LIBGETTEXT_H
Packit Service 963350
#define _LIBGETTEXT_H 1
Packit Service 963350
Packit Service 963350
/* NLS can be disabled through the configure --disable-nls option.  */
Packit Service 963350
#ifdef ENABLE_NLS
Packit Service 963350
Packit Service 963350
/* Get declarations of GNU message catalog functions.  */
Packit Service 963350
# include <libintl.h>
Packit Service 963350
Packit Service 963350
#else
Packit Service 963350
Packit Service 963350
/* Solaris /usr/include/locale.h includes /usr/include/libintl.h, which
Packit Service 963350
   chokes if dcgettext is defined as a macro.  So include it now, to make
Packit Service 963350
   later inclusions of <locale.h> a NOP.  We don't include <libintl.h>
Packit Service 963350
   as well because people using "gettext.h" will not include <libintl.h>,
Packit Service 963350
   and also including <libintl.h> would fail on SunOS 4, whereas <locale.h>
Packit Service 963350
   is OK.  */
Packit Service 963350
#if defined(__sun)
Packit Service 963350
# include <locale.h>
Packit Service 963350
#endif
Packit Service 963350
Packit Service 963350
/* Disabled NLS.
Packit Service 963350
   The casts to 'const char *' serve the purpose of producing warnings
Packit Service 963350
   for invalid uses of the value returned from these functions.
Packit Service 963350
   On pre-ANSI systems without 'const', the config.h file is supposed to
Packit Service 963350
   contain "#define const".  */
Packit Service 963350
# define gettext(Msgid) ((const char *) (Msgid))
Packit Service 963350
# define dgettext(Domainname, Msgid) ((const char *) (Msgid))
Packit Service 963350
# define dcgettext(Domainname, Msgid, Category) ((const char *) (Msgid))
Packit Service 963350
# define ngettext(Msgid1, Msgid2, N) \
Packit Service 963350
    ((N) == 1 ? (const char *) (Msgid1) : (const char *) (Msgid2))
Packit Service 963350
# define dngettext(Domainname, Msgid1, Msgid2, N) \
Packit Service 963350
    ((N) == 1 ? (const char *) (Msgid1) : (const char *) (Msgid2))
Packit Service 963350
# define dcngettext(Domainname, Msgid1, Msgid2, N, Category) \
Packit Service 963350
    ((N) == 1 ? (const char *) (Msgid1) : (const char *) (Msgid2))
Packit Service 963350
# define textdomain(Domainname) ((const char *) (Domainname))
Packit Service 963350
# define bindtextdomain(Domainname, Dirname) ((const char *) (Dirname))
Packit Service 963350
# define bind_textdomain_codeset(Domainname, Codeset) ((const char *) (Codeset))
Packit Service 963350
Packit Service 963350
#endif
Packit Service 963350
Packit Service 963350
/* A pseudo function call that serves as a marker for the automated
Packit Service 963350
   extraction of messages, but does not call gettext().  The run-time
Packit Service 963350
   translation is done at a different place in the code.
Packit Service 963350
   The argument, String, should be a literal string.  Concatenated strings
Packit Service 963350
   and other string expressions won't work.
Packit Service 963350
   The macro's expansion is not parenthesized, so that it is suitable as
Packit Service 963350
   initializer for static 'char[]' or 'const char[]' variables.  */
Packit Service 963350
#define gettext_noop(String) String
Packit Service 963350
Packit Service 963350
#endif /* _LIBGETTEXT_H */