More accurate "packed" attribute declaration.

This commit is contained in:
Valentin Bartenev
2017-07-18 17:13:40 +03:00
parent beb4de21bb
commit 9d707800b0
2 changed files with 26 additions and 2 deletions

View File

@@ -146,3 +146,18 @@ nxt_feature_test="#include <stdlib.h>
return 0;
}"
. auto/feature
nxt_feature="GCC __attribute__ packed"
nxt_feature_name=NXT_HAVE_GCC_ATTRIBUTE_PACKED
nxt_feature_run=
nxt_feature_path=
nxt_feature_libs=
nxt_feature_test="struct __attribute__ ((__packed__)) s {
char c;
};
int main() {
return 1;
}"
. auto/feature