diff options
Diffstat (limited to 'm4')
-rw-r--r-- | m4/attributes.m4 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/m4/attributes.m4 b/m4/attributes.m4 index 393ee0ba7..bb53cca41 100644 --- a/m4/attributes.m4 +++ b/m4/attributes.m4 @@ -166,6 +166,14 @@ AC_DEFUN([CC_ATTRIBUTE_MALLOC], [ [$2]) ]) +AC_DEFUN([CC_ATTRIBUTE_PACKED], [ + CC_CHECK_ATTRIBUTE( + [packed], , + [struct astructure { char a; int b; long c; void *d; } __attribute__((packed));], + [$1], + [$2]) +]) + AC_DEFUN([CC_FLAG_VISIBILITY], [ AC_REQUIRE([CC_CHECK_WERROR]) ac_save_CFLAGS="$CFLAGS" |