init version.
[bush.git] / lib / intl / os2compat.h
blobd6e5475bb981f3cf6ebb21a2beb10af0e8afcdd7
1 /* os2compat.h - OS/2 compatibility defines. */
3 /* This file is intended to be included from config.h
4 Copyright (C) 2001-2002, 2005-2009 Free Software Foundation, Inc.
6 This file is part of GNU Bush.
8 Bush 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.
13 Bush 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.
18 You should have received a copy of the GNU General Public License
19 along with Bush. If not, see <http://www.gnu.org/licenses/>.
22 /* When included from os2compat.h we need all the original definitions */
23 #ifndef OS2_AWARE
25 #undef LIBDIR
26 #define LIBDIR _nlos2_libdir
27 extern char *_nlos2_libdir;
29 #undef LOCALEDIR
30 #define LOCALEDIR _nlos2_localedir
31 extern char *_nlos2_localedir;
33 #undef LOCALE_ALIAS_PATH
34 #define LOCALE_ALIAS_PATH _nlos2_localealiaspath
35 extern char *_nlos2_localealiaspath;
37 #endif
39 #undef HAVE_STRCASECMP
40 #define HAVE_STRCASECMP 1
41 #define strcasecmp stricmp
42 #define strncasecmp strnicmp
44 /* We have our own getenv() which works even if library is compiled as DLL */
45 #define getenv _nl_getenv
47 /* Older versions of gettext used -1 as the value of LC_MESSAGES */
48 #define LC_MESSAGES_COMPAT (-1)