1#pragma once
2
3#include <stddef.h>
4
5#ifdef __cplusplus
6extern "C" {
7#endif
8
9// `memrchr` is a GNU extension and may not be declared by system headers even when the symbol exists.
10// Declare it unconditionally; the build system provides a fallback implementation when missing.
11#ifndef memrchr
12void* memrchr(const void* s, int c, size_t n);
13#endif
14
15#ifdef __cplusplus
16}
17#endif