[vlc-devel] [PATCH V2 1/8] vlc_common: implement VLC_WEAK for MACH-O

Thomas Guillem thomas at gllm.fr
Tue Jan 22 11:13:18 CET 2019


---
 include/vlc_common.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/vlc_common.h b/include/vlc_common.h
index 060630ce50..55866a9067 100644
--- a/include/vlc_common.h
+++ b/include/vlc_common.h
@@ -185,7 +185,7 @@
 # define VLC_USED
 #endif
 
-#ifdef __ELF__
+#if defined (__ELF__) || defined (__MACH__)
 # define VLC_WEAK __attribute__((weak))
 #else
 /**
-- 
2.20.1



More information about the vlc-devel mailing list