xref: /netbsd-src/external/gpl2/grep/dist/intl/os2compat.h (revision a8fa202a6440953be7b92a8960a811bff58203f4)
1*a8fa202aSchristos /*	$NetBSD: os2compat.h,v 1.1.1.1 2016/01/10 21:36:18 christos Exp $	*/
2*a8fa202aSchristos 
3*a8fa202aSchristos /* OS/2 compatibility defines.
4*a8fa202aSchristos    This file is intended to be included from config.h
5*a8fa202aSchristos    Copyright (C) 2001-2002 Free Software Foundation, Inc.
6*a8fa202aSchristos 
7*a8fa202aSchristos    This program is free software; you can redistribute it and/or modify it
8*a8fa202aSchristos    under the terms of the GNU Library General Public License as published
9*a8fa202aSchristos    by the Free Software Foundation; either version 2, or (at your option)
10*a8fa202aSchristos    any later version.
11*a8fa202aSchristos 
12*a8fa202aSchristos    This program is distributed in the hope that it will be useful,
13*a8fa202aSchristos    but WITHOUT ANY WARRANTY; without even the implied warranty of
14*a8fa202aSchristos    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15*a8fa202aSchristos    Library General Public License for more details.
16*a8fa202aSchristos 
17*a8fa202aSchristos    You should have received a copy of the GNU Library General Public
18*a8fa202aSchristos    License along with this program; if not, write to the Free Software
19*a8fa202aSchristos    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
20*a8fa202aSchristos    USA.  */
21*a8fa202aSchristos 
22*a8fa202aSchristos /* When included from os2compat.h we need all the original definitions */
23*a8fa202aSchristos #ifndef OS2_AWARE
24*a8fa202aSchristos 
25*a8fa202aSchristos #undef LIBDIR
26*a8fa202aSchristos #define LIBDIR			_os2_libdir
27*a8fa202aSchristos extern char *_os2_libdir;
28*a8fa202aSchristos 
29*a8fa202aSchristos #undef LOCALEDIR
30*a8fa202aSchristos #define LOCALEDIR		_os2_localedir
31*a8fa202aSchristos extern char *_os2_localedir;
32*a8fa202aSchristos 
33*a8fa202aSchristos #undef LOCALE_ALIAS_PATH
34*a8fa202aSchristos #define LOCALE_ALIAS_PATH	_os2_localealiaspath
35*a8fa202aSchristos extern char *_os2_localealiaspath;
36*a8fa202aSchristos 
37*a8fa202aSchristos #endif
38*a8fa202aSchristos 
39*a8fa202aSchristos #undef HAVE_STRCASECMP
40*a8fa202aSchristos #define HAVE_STRCASECMP 1
41*a8fa202aSchristos #define strcasecmp stricmp
42*a8fa202aSchristos #define strncasecmp strnicmp
43*a8fa202aSchristos 
44*a8fa202aSchristos /* We have our own getenv() which works even if library is compiled as DLL */
45*a8fa202aSchristos #define getenv _nl_getenv
46*a8fa202aSchristos 
47*a8fa202aSchristos /* Older versions of gettext used -1 as the value of LC_MESSAGES */
48*a8fa202aSchristos #define LC_MESSAGES_COMPAT (-1)
49