You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

os2compat.h 1.5KB

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