• Classes
  • Modules
  • Namespaces
  • Files
  • Related Pages
  • File List
  • File Members

nls.h

Go to the documentation of this file.
00001 /*
00002     nls.h - NLS system interface
00003     Copyright (c) 2000  Frodo Looijaard <frodol@dds.nl>
00004 
00005     This program is free software; you can redistribute it and/or modify
00006     it under the terms of the GNU General Public License as published by
00007     the Free Software Foundation; either version 2 of the License, or
00008     (at your option) any later version.
00009 
00010     This program is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013     GNU General Public License for more details.
00014 
00015     You should have received a copy of the GNU General Public License
00016     along with this program; if not, write to the Free Software
00017     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00018 */
00019 
00020 /* This file is a small hack to keep both the stand-alone package and
00021  * the util-linux versions happy.
00022  * In the stand-alone version, we define NOT_UTIL_LINUX and use our own
00023  * nls.h definitions; in the util-linux version, we use the global
00024  * util-linux nls definitions
00025  */
00026 
00027 #ifdef NOT_UTIL_LINUX
00028 
00029 #ifndef GETOPT_NLS
00030 #define GETOPT_NLS
00031 
00032 #define PACKAGE "getopt"
00033 
00034 #ifndef WITHOUT_GETTEXT
00035 #include <libintl.h>
00036 #define _(Text) gettext (Text)
00037 #else /* def WITHOUT_GETTEXT */
00038 #define _(Text) (Text)
00039 #undef bindtextdomain
00040 #define bindtextdomain(Domain,Directory) /* empty */
00041 #undef textdomain
00042 #define textdomain(Domain) /* empty */
00043 #endif /* ndef WITHOUT_GETTEXT */
00044 
00045 #endif /* def GETOPT_NLS */
00046 
00047 #else /* not NOT_UTIL_LINUX */
00048 #include "../lib/nls.h"
00049 #endif /* NOT_UTIL_LINUX */

Generated on Thu Jan 12 2012 23:13:51 for ACS-10.0 C++ API by  doxygen 1.7.0