Skip to content

Commit

Permalink
Add extern "C"
Browse files Browse the repository at this point in the history
Signed-off-by: Molly Sophia <mollysophia379@gmail.com>
  • Loading branch information
MollySophia committed Feb 22, 2024
1 parent 0d24382 commit 1c9a7c8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ruapu.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
#ifndef RUAPU_H
#define RUAPU_H

#ifdef __cplusplus
extern "C" {
#endif

void ruapu_init();

int ruapu_supports(const char* isa);
Expand Down Expand Up @@ -319,4 +323,8 @@ int ruapu_supports(const char* isa)

#endif // RUAPU_IMPLEMENTATION

#ifdef __cplusplus
}
#endif

#endif // RUAPU_H

0 comments on commit 1c9a7c8

Please sign in to comment.