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

Diff of /bison/lib/gettext.h

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

revision 1.1 by akim, Thu Mar 14 18:31:14 2002 UTC revision 1.2 by eggert, Mon Aug 12 14:11:35 2002 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 Free Software Foundation, Inc.
3    
4     This program is free software; you can redistribute it and/or modify it     This program is free software; you can redistribute it and/or modify
5     under the terms of the GNU Library General Public License as published     it under the terms of the GNU General Public License as published by
6     by the Free Software Foundation; either version 2, or (at your option)     the Free Software Foundation; either version 2, or (at your option)
7     any later version.     any later version.
8    
9     This program is distributed in the hope that it will be useful,     This program is distributed in the hope that it will be useful,
10     but WITHOUT ANY WARRANTY; without even the implied warranty of     but WITHOUT ANY WARRANTY; without even the implied warranty of
11     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12     Library General Public License for more details.     GNU General Public License for more details.
13    
14     You should have received a copy of the GNU Library General Public     You should have received a copy of the GNU General Public License
15     License along with this program; if not, write to the Free Software     along with this program; if not, write to the Free Software Foundation,
16     Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,     Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
    USA.  */  
17    
18  #ifndef _LIBGETTEXT_H  #ifndef _LIBGETTEXT_H
19  #define _LIBGETTEXT_H 1  #define _LIBGETTEXT_H 1
# Line 27  Line 26 
26    
27  #else  #else
28    
29    /* Solaris /usr/include/locale.h includes /usr/include/libintl.h, which
30       chokes if dcgettext is defined as a macro.  So include it now, to make
31       later inclusions of <locale.h> a NOP.  We don't include <libintl.h>
32       as well because people using "gettext.h" will not include <libintl.h>,
33       and also including <libintl.h> would fail on SunOS 4, whereas <locale.h>
34       is OK.  */
35    #if defined(__sun)
36    # include <locale.h>
37    #endif
38    
39  /* Disabled NLS.  /* Disabled NLS.
40     The casts to 'const char *' serve the purpose of producing warnings     The casts to 'const char *' serve the purpose of producing warnings
41     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