Imported from ../bash-4.0-rc1.tar.gz.
[platform/upstream/bash.git] / lib / intl / os2compat.h
1 /* os2compat.h - OS/2 compatibility defines. */
2
3 /* This file is intended to be included from config.h
4    Copyright (C) 2001-2002, 2005-2009 Free Software Foundation, Inc.
5
6    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,
14    but WITHOUT ANY WARRANTY; without even the implied warranty of
15    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16    GNU General Public License for more details.
17
18    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 */
21
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
27 extern char *_nlos2_libdir;
28
29 #undef LOCALEDIR
30 #define LOCALEDIR               _nlos2_localedir
31 extern char *_nlos2_localedir;
32
33 #undef LOCALE_ALIAS_PATH
34 #define LOCALE_ALIAS_PATH       _nlos2_localealiaspath
35 extern 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)