Statistics
| Revision:

root / intl / os2compat.h @ 22

History | View | Annotate | Download (1.5 kB)

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