util/rand_xor: Add extern C for C++ compatibility

Signed-off-by: Dhruv Mark Collins <mark@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37802>
This commit is contained in:
Dhruv Mark Collins 2025-10-09 13:56:10 +00:00
parent 44564b966d
commit 3433a90071

View file

@ -28,10 +28,18 @@
#include <stdint.h>
#include <stdbool.h>
#ifdef __cplusplus
extern "C" {
#endif
uint64_t
rand_xorshift128plus(uint64_t seed[2]);
void
s_rand_xorshift128plus(uint64_t seed[2], bool randomised_seed);
#ifdef __cplusplus
} /* end of extern "C" */
#endif
#endif /* RAND_XOR_H */