1/* $NetBSD: os2compat.h,v 1.1.1.1 2016/01/14 00:11:28 christos Exp $ */ 2 3/* OS/2 compatibility defines. 4 This file is intended to be included from config.h 5 Copyright (C) 2001-2002 Free Software Foundation, Inc. 6 7 This program is free software; you can redistribute it and/or modify it 8 under the terms of the GNU Library General Public License as published 9 by the Free Software Foundation; either version 2, or (at your option) 10 any later version. 11 12 This program is distributed in the hope that it will be useful, 13 but WITHOUT ANY WARRANTY; without even the implied warranty of 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 Library General Public License for more details. 16 17 You should have received a copy of the GNU Library General Public 18 License along with this program; if not, write to the Free Software 19 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, 20 USA. */ 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 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) 49