~vcs-imports/gawk/master

« back to all changes in this revision

Viewing changes to gettext.h

  • Committer: Arnold D. Robbins
  • Date: 2010-07-16 11:47:02 UTC
  • Revision ID: git-v1:315bd501ca696bc3e3c938b4604d8dac7a6f512f
Tags: gawk-3.1.5
Move to gawk 3.1.5.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* Convenience header for conditional use of GNU <libintl.h>.
2
 
   Copyright (C) 1995-1998, 2000-2002 Free Software Foundation, Inc.
 
2
   Copyright (C) 1995-1998, 2000-2002, 2005 Free Software Foundation, Inc.
3
3
 
4
4
   This program is free software; you can redistribute it and/or modify it
5
5
   under the terms of the GNU Library General Public License as published
13
13
 
14
14
   You should have received a copy of the GNU Library General Public
15
15
   License along with this program; if not, write to the Free Software
16
 
   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
 
16
   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
17
17
   USA.  */
18
18
 
19
19
#ifndef _LIBGETTEXT_H
38
38
   as well because people using "gettext.h" will not include <libintl.h>,
39
39
   and also including <libintl.h> would fail on SunOS 4, whereas <locale.h>
40
40
   is OK.  */
41
 
#if defined(__sun)
 
41
/* ADR: Include <locale.h> even if not ENABLE_NLS so can pay attention
 
42
 * to locale number formats, etc.
 
43
 */
 
44
#if defined(__sun) || defined(HAVE_LOCALE_H)
42
45
# include <locale.h>
43
46
#endif
44
47