logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git

newsboat-2.13-json-c-0.14.0.patch (1007B)


  1. Patch merged upstream for future versions of newsboat: https://github.com/newsboat/newsboat/pull/883
  2. From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= <besser82@fedoraproject.org>
  3. Date: Mon, 13 Apr 2020 12:52:46 +0200
  4. Subject: [PATCH] Add support for upcoming json-c 0.14.0.
  5. TRUE/FALSE are not defined anymore. 1 and 0 are used instead.
  6. ---
  7. src/newsblurapi.cpp | 13 +++++++++++++
  8. 1 file changed, 13 insertions(+)
  9. diff --git a/src/newsblur_api.cpp b/src/newsblur_api.cpp
  10. index 2d1acdae..e124852d 100644
  11. --- a/src/newsblur_api.cpp
  12. +++ b/src/newsblur_api.cpp
  13. @@ -9,6 +9,19 @@
  14. #include "strprintf.h"
  15. #include "utils.h"
  16. +/* json-c 0.13.99 does not define TRUE/FALSE anymore
  17. + * the json-c maintainers replaced them with pure 1/0
  18. + * https://github.com/json-c/json-c/commit/0992aac61f8b
  19. + */
  20. +#if defined JSON_C_VERSION_NUM && JSON_C_VERSION_NUM >= ((13 << 8) | 99)
  21. +#ifndef FALSE
  22. +#define FALSE 0
  23. +#endif
  24. +#ifndef TRUE
  25. +#define TRUE 1
  26. +#endif
  27. +#endif
  28. +
  29. #define NEWSBLUR_ITEMS_PER_PAGE 6
  30. namespace newsboat {