Not all compilers claiming to be gcc support this attribute.
Originally committed as revision 19453 to svn://svn.ffmpeg.org/ffmpeg/trunk
... | ... |
@@ -899,6 +899,7 @@ HAVE_LIST=" |
899 | 899 |
alsa_asoundlib_h |
900 | 900 |
altivec_h |
901 | 901 |
arpa_inet_h |
902 |
+ attribute_packed |
|
902 | 903 |
bigendian |
903 | 904 |
bswap |
904 | 905 |
closesocket |
... | ... |
@@ -2165,6 +2166,10 @@ void foo(char * $restrict_keyword p); |
2165 | 2165 |
EOF |
2166 | 2166 |
done |
2167 | 2167 |
|
2168 |
+check_cc <<EOF && enable attribute_packed |
|
2169 |
+struct { int x; } __attribute__((packed)) x; |
|
2170 |
+EOF |
|
2171 |
+ |
|
2168 | 2172 |
########################################## |
2169 | 2173 |
# SDL check |
2170 | 2174 |
|