diff options
author | Carlo Bramini <carlo.bramix@libero.it> | 2012-05-29 09:26:56 +0300 |
---|---|---|
committer | Carlo Bramini <carlo.bramix@libero.it> | 2012-05-29 09:26:56 +0300 |
commit | ba90c7eb0ab1e068a06b28d40f4e0fc0a538873b (patch) | |
tree | 7771d380740c846cf382d4851b0d41262386fb51 /m4 | |
parent | f91042b188c47568472defa6d567b5f5a2c268f5 (diff) | |
download | xine-lib-ba90c7eb0ab1e068a06b28d40f4e0fc0a538873b.tar.gz xine-lib-ba90c7eb0ab1e068a06b28d40f4e0fc0a538873b.tar.bz2 |
Check if compiler supports __attribute__((weak))
Diffstat (limited to 'm4')
-rw-r--r-- | m4/attributes.m4 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/m4/attributes.m4 b/m4/attributes.m4 index 3d9c256a0..4e613f23a 100644 --- a/m4/attributes.m4 +++ b/m4/attributes.m4 @@ -218,6 +218,13 @@ AC_DEFUN([CC_ATTRIBUTE_SENTINEL], [ [$1], [$2]) ]) +AC_DEFUN([CC_ATTRIBUTE_WEAK], [ + CC_CHECK_ATTRIBUTE( + [weak], , + [void some_function(void *, int) __attribute__((weak));], + [$1], [$2]) +]) + AC_DEFUN([CC_ATTRIBUTE_DEPRECATED], [ CC_CHECK_ATTRIBUTE( [deprecated], , |