fix-function-visibility.patch 685 B

12345678910111213141516171819202122232425
  1. From 256a68112ef5df7b0862efd145e4f5c101457e7b Mon Sep 17 00:00:00 2001
  2. From: Redbeanw44602 <[email protected]>
  3. Date: Sun, 30 Mar 2025 22:29:57 +0800
  4. Subject: [PATCH] try fix function visibility.
  5. ---
  6. include/funchook.h | 2 +-
  7. 1 file changed, 1 insertion(+), 1 deletion(-)
  8. diff --git a/include/funchook.h b/include/funchook.h
  9. index 0df118b..dfda840 100644
  10. --- a/include/funchook.h
  11. +++ b/include/funchook.h
  12. @@ -41,7 +41,7 @@ extern "C" {
  13. #ifdef FUNCHOOK_EXPORTS
  14. #if defined(_WIN32)
  15. #define FUNCHOOK_EXPORT __declspec(dllexport)
  16. -#elif defined(__GNUC__)
  17. +#else
  18. #define FUNCHOOK_EXPORT __attribute__((visibility("default")))
  19. #endif
  20. #endif /* FUNCHOOK_EXPORTS */
  21. --
  22. 2.49.0