mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 04:58:05 +02:00
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:
parent
44564b966d
commit
3433a90071
1 changed files with 8 additions and 0 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue