From adec4f3aebe0604f5c43b6f3a92879e7f4defec8 Mon Sep 17 00:00:00 2001 From: Mehmet Samet Duman Date: Sun, 5 Apr 2026 16:18:55 +0300 Subject: NOISSUE Fix workflows, cgit, genqrcode, meshmc wiki url, mnv with Cmake Fixed some reusable workflows. Fixed cgit.h for macOS target updated genqrcode CMake version Changed Meta generator to use Project Tick official builded ForgeWrapper Updated MeshMC wiki Urls Fixed MNV test issue Added CMake Presets in MNV Thats it! Signed-off-by: Mehmet Samet Duman --- cgit/cgit.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'cgit/cgit.h') diff --git a/cgit/cgit.h b/cgit/cgit.h index b7b95e0f08..b712135196 100644 --- a/cgit/cgit.h +++ b/cgit/cgit.h @@ -35,6 +35,21 @@ #undef isgraph #define isgraph(x) (isprint((x)) && !isspace((x))) +/* memrchr is a GNU extension, not available on macOS/BSD */ +#ifndef HAVE_MEMRCHR +#if !defined(__GLIBC__) && !defined(__linux__) +static inline void *memrchr(const void *s, int c, size_t n) +{ + const unsigned char *p = (const unsigned char *)s + n; + while (n--) { + if (*--p == (unsigned char)c) + return (void *)p; + } + return NULL; +} +#endif +#endif + /* * Limits used for relative dates -- cgit 0.0.5-2-1-g0f52