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