intl.c 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /* Copyright (C) 2003 Manuel Novoa III
  2. *
  3. * This library is free software; you can redistribute it and/or
  4. * modify it under the terms of the GNU Library General Public
  5. * License as published by the Free Software Foundation; either
  6. * version 2 of the License, or (at your option) any later version.
  7. *
  8. * This library 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. *
  13. * You should have received a copy of the GNU Library General Public
  14. * License along with this library; if not, write to the Free
  15. * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  16. */
  17. /*
  18. * Supply some weaks for use by strerror*(), etc.
  19. */
  20. #include <stdlib.h>
  21. #include <string.h>
  22. #include <errno.h>
  23. #undef __OPTIMIZE__
  24. #include <libintl.h>
  25. /**********************************************************************/
  26. #ifdef L___uClibc_dgettext
  27. char *__uClibc_dgettext(const char *domainname,
  28. const char *msgid)
  29. {
  30. return (char *) msgid;
  31. }
  32. weak_alias (__uClibc_dgettext, __dgettext)
  33. #endif
  34. /**********************************************************************/
  35. #ifdef L___uClibc_dcgettext
  36. char * __uClibc_dcgettext(const char *domainname,
  37. const char *msgid, int category)
  38. {
  39. return (char *) msgid;
  40. }
  41. weak_alias (__uClibc_dcgettext, __dcgettext)
  42. #endif
  43. /**********************************************************************/