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