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