/[inetutils]/inetutils/lib/gettext.h
ViewVC logotype

Diff of /inetutils/lib/gettext.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by ams, Fri Jan 21 13:02:48 2005 UTC revision 1.2 by gray, Fri Jul 29 10:52:43 2005 UTC
# Line 1  Line 1 
1  /* Convenience header for conditional use of GNU <libintl.h>.  /* Convenience header for conditional use of GNU <libintl.h>.
2     Copyright (C) 1995-1998, 2000-2002 Free Software Foundation, Inc.     Copyright (C) 1995-1998, 2000-2002, 2004 Free Software Foundation, Inc.
3    
4     This program is free software; you can redistribute it and/or modify     This program is free software; you can redistribute it and/or modify
5     it under the terms of the GNU General Public License as published by     it under the terms of the GNU General Public License as published by
# Line 13  Line 13 
13    
14     You should have received a copy of the GNU General Public License along     You should have received a copy of the GNU General Public License along
15     with this program; if not, write to the Free Software Foundation,     with this program; if not, write to the Free Software Foundation,
16     Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */     Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
17    
18  #ifndef _LIBGETTEXT_H  #ifndef _LIBGETTEXT_H
19  #define _LIBGETTEXT_H 1  #define _LIBGETTEXT_H 1
# Line 36  Line 36 
36  # include <locale.h>  # include <locale.h>
37  #endif  #endif
38    
39    /* Many header files from the libstdc++ coming with g++ 3.3 or newer include
40       <libintl.h>, which chokes if dcgettext is defined as a macro.  So include
41       it now, to make later inclusions of <libintl.h> a NOP.  */
42    #if defined(__cplusplus) && defined(__GNUG__) && (__GNUC__ >= 3)
43    # include <cstdlib>
44    # if (__GLIBC__ >= 2) || _GLIBCXX_HAVE_LIBINTL_H
45    #  include <libintl.h>
46    # endif
47    #endif
48    
49  /* Disabled NLS.  /* Disabled NLS.
50     The casts to 'const char *' serve the purpose of producing warnings     The casts to 'const char *' serve the purpose of producing warnings
51     for invalid uses of the value returned from these functions.     for invalid uses of the value returned from these functions.

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26