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.

47 lines
1.7 KiB

  1. --- a/include/gettext.h 2012-09-12 16:57:52.000000000 +0400
  2. +++ b/include/gettext.h 2019-04-07 01:11:52.492519796 +0300
  3. @@ -182,7 +182,7 @@
  4. (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined(__STRICT_ANSI__)) \
  5. /* || __STDC_VERSION__ >= 199901L */ )
  6. -#if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
  7. +#if !defined(_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS)
  8. #include <stdlib.h>
  9. #endif
  10. @@ -206,7 +206,7 @@
  11. size_t msgctxt_len = strlen (msgctxt) + 1;
  12. size_t msgid_len = strlen (msgid) + 1;
  13. const char *translation;
  14. -#if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
  15. +#if defined(_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS)
  16. char msg_ctxt_id[msgctxt_len + msgid_len];
  17. #else
  18. char buf[1024];
  19. @@ -221,7 +221,7 @@
  20. msg_ctxt_id[msgctxt_len - 1] = '\004';
  21. memcpy (msg_ctxt_id + msgctxt_len, msgid, msgid_len);
  22. translation = dcgettext (domain, msg_ctxt_id, category);
  23. -#if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
  24. +#if !defined(_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS)
  25. if (msg_ctxt_id != buf)
  26. free (msg_ctxt_id);
  27. #endif
  28. @@ -252,7 +252,7 @@
  29. size_t msgctxt_len = strlen (msgctxt) + 1;
  30. size_t msgid_len = strlen (msgid) + 1;
  31. const char *translation;
  32. -#if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
  33. +#if defined(_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS)
  34. char msg_ctxt_id[msgctxt_len + msgid_len];
  35. #else
  36. char buf[1024];
  37. @@ -267,7 +267,7 @@
  38. msg_ctxt_id[msgctxt_len - 1] = '\004';
  39. memcpy (msg_ctxt_id + msgctxt_len, msgid, msgid_len);
  40. translation = dcngettext (domain, msg_ctxt_id, msgid_plural, n, category);
  41. -#if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
  42. +#if !defined(_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS)
  43. if (msg_ctxt_id != buf)
  44. free (msg_ctxt_id);
  45. #endif