1 /*************************************************************************** 2 * Pinfo is a ncurses based lynx style info documentation browser 3 * 4 * Copyright (C) 1999 Przemek Borys <pborys@dione.ids.pl> 5 * Copyright (C) 2005 Bas Zoetekouw <bas@debian.org> 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of version 2 of the GNU General Public License as 9 * published by the Free Software Foundation. 10 * 11 * This program is distributed in the hope that it will be useful, but 12 * WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program; if not, write to the Free Software 18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 19 * USA 20 ***************************************************************************/ 21 22 /* locale support. Adapted from binutils */ 23 24 #ifndef __LOCALESTUFF_H 25 #define __LOCALESTUFF_H 26 27 #ifdef HAVE_CONFIG_H 28 # include "config.h" 29 #endif 30 31 /* Take care of NLS matters. */ 32 33 #ifdef HAVE_LOCALE_H 34 # include <locale.h> 35 #endif 36 #ifndef HAVE_SETLOCALE 37 # define setlocale(Category, Locale) /* empty */ 38 #endif 39 40 #ifdef ENABLE_NLS 41 # include <libintl.h> 42 # define _(Text) gettext (Text) 43 #else 44 # undef bindtextdomain 45 # define bindtextdomain(Domain, Directory) /* empty */ 46 # undef textdomain 47 # define textdomain(Domain) /* empty */ 48 # define _(Text) Text 49 #endif 50 51 #define STREQ(a,b) (strcmp((a), (b)) == 0) 52 53 #endif 54