diff options
-rw-r--r-- | checkasm/checkasm.c | 1 | ||||
-rw-r--r-- | checkasm/checkasm.h | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/checkasm/checkasm.c b/checkasm/checkasm.c index 3433c6af..dd2e9a17 100644 --- a/checkasm/checkasm.c +++ b/checkasm/checkasm.c @@ -736,6 +736,7 @@ int checkasm_bench_func(void) { /* Indicate that the current test has failed, return whether verbose printing * is requested. */ +ASM_CALLABLE int checkasm_fail_func(const char *const msg, ...) { if (state.current_func_ver && state.current_func_ver->cpu && state.current_func_ver->ok) diff --git a/checkasm/checkasm.h b/checkasm/checkasm.h index 81cbac28..48bacdbd 100644 --- a/checkasm/checkasm.h +++ b/checkasm/checkasm.h @@ -335,4 +335,10 @@ void checkasm_stack_clobber(uint64_t clobber, ...); line __attribute__((aligned(align))) #endif +#ifdef _MSC_VER +#define ASM_CALLABLE +#else +#define ASM_CALLABLE __attribute__((visibility("hidden"))) +#endif + #endif /* CHECKASM_CHECKASM_H */ |