0003-Hopefully-silence-warnings-about-inlines-and-non-inlines-calling-one.patch 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. From 21b4836ac9d6c6725590a925daa5d17eda9843e9 Mon Sep 17 00:00:00 2001
  2. From: Daniel Silverstone <dsilvers@digital-scurf.org>
  3. Date: Sat, 26 Apr 2014 16:24:54 +0100
  4. Subject: Hopefully silence warnings about inlines and non inlines calling one
  5. another.
  6. [Retrieved from:
  7. https://source.netsurf-browser.org/libsvgtiny.git/commit/src?id=21b4836ac9d6c6725590a925daa5d17eda9843e9]
  8. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  9. ---
  10. src/colors.gperf | 9 +++++++++
  11. 1 file changed, 9 insertions(+)
  12. diff --git a/src/colors.gperf b/src/colors.gperf
  13. index 89152d2..96d5b9e 100644
  14. --- a/src/colors.gperf
  15. +++ b/src/colors.gperf
  16. @@ -16,6 +16,15 @@
  17. #include <string.h>
  18. #include "svgtiny.h"
  19. #include "svgtiny_internal.h"
  20. +
  21. +/* This unusual define shennanigan is to try and prevent the gperf
  22. + * generated function from being inlined. This is pointless given
  23. + * it (a) is in a separate .c file and (b) has external linkage.
  24. + */
  25. +#ifdef __inline
  26. +#undef __inline
  27. +#define __inline
  28. +#endif
  29. %}
  30. struct svgtiny_named_color;
  31. --
  32. cgit v1.2.1