Add extern "C" (#21)

Signed-off-by: Molly Sophia <mollysophia379@gmail.com>
This commit is contained in:
Molly Sophia 2024-02-22 21:12:36 +08:00 committed by GitHub
parent 0d24382f76
commit 8d8d98fe01
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7,6 +7,10 @@
#ifndef RUAPU_H
#define RUAPU_H
#ifdef __cplusplus
extern "C" {
#endif
void ruapu_init();
int ruapu_supports(const char* isa);
@ -319,4 +323,8 @@ int ruapu_supports(const char* isa)
#endif // RUAPU_IMPLEMENTATION
#ifdef __cplusplus
}
#endif
#endif // RUAPU_H