diff options
| author | Mehmet Samet Duman <yongdohyun@projecttick.org> | 2026-04-05 16:18:55 +0300 |
|---|---|---|
| committer | Mehmet Samet Duman <yongdohyun@projecttick.org> | 2026-04-05 16:18:55 +0300 |
| commit | adec4f3aebe0604f5c43b6f3a92879e7f4defec8 (patch) | |
| tree | 5ad302c3af71c6c0dad2539f7f28cae47c932c0d /cgit/cgit.h | |
| parent | 4dd69a1dffd158f03da7e33c0be28f2b98a9ccea (diff) | |
| download | Project-Tick-adec4f3aebe0604f5c43b6f3a92879e7f4defec8.tar.gz Project-Tick-adec4f3aebe0604f5c43b6f3a92879e7f4defec8.zip | |
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 <yongdohyun@projecttick.org>
Diffstat (limited to 'cgit/cgit.h')
| -rw-r--r-- | cgit/cgit.h | 15 |
1 files changed, 15 insertions, 0 deletions
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 |
