blob: 8de3183071f841917ea44931eed21ae27b098c5a [file] [log] [blame]
Jari Aalto31859422009-01-12 13:36:28 +00001/* os2compat.h - OS/2 compatibility defines. */
Jari Aaltob80f6442004-07-27 13:29:18 +00002
Jari Aalto31859422009-01-12 13:36:28 +00003/* This file is intended to be included from config.h
4 Copyright (C) 2001-2002, 2005-2009 Free Software Foundation, Inc.
Jari Aaltob80f6442004-07-27 13:29:18 +00005
Jari Aalto31859422009-01-12 13:36:28 +00006 This file is part of GNU Bash.
7
8 Bash is free software: you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation, either version 3 of the License, or
11 (at your option) any later version.
12
13 Bash is distributed in the hope that it will be useful,
Jari Aaltob80f6442004-07-27 13:29:18 +000014 but WITHOUT ANY WARRANTY; without even the implied warranty of
Jari Aalto31859422009-01-12 13:36:28 +000015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
Jari Aaltob80f6442004-07-27 13:29:18 +000017
Jari Aalto31859422009-01-12 13:36:28 +000018 You should have received a copy of the GNU General Public License
19 along with Bash. If not, see <http://www.gnu.org/licenses/>.
20*/
Jari Aaltob80f6442004-07-27 13:29:18 +000021
22/* When included from os2compat.h we need all the original definitions */
23#ifndef OS2_AWARE
24
25#undef LIBDIR
26#define LIBDIR _nlos2_libdir
27extern char *_nlos2_libdir;
28
29#undef LOCALEDIR
30#define LOCALEDIR _nlos2_localedir
31extern char *_nlos2_localedir;
32
33#undef LOCALE_ALIAS_PATH
34#define LOCALE_ALIAS_PATH _nlos2_localealiaspath
35extern char *_nlos2_localealiaspath;
36
37#endif
38
39#undef HAVE_STRCASECMP
40#define HAVE_STRCASECMP 1
41#define strcasecmp stricmp
42#define strncasecmp strnicmp
43
44/* We have our own getenv() which works even if library is compiled as DLL */
45#define getenv _nl_getenv
46
47/* Older versions of gettext used -1 as the value of LC_MESSAGES */
48#define LC_MESSAGES_COMPAT (-1)