Commit 53fd8b15 authored by mru's avatar mru

Check for may_alias gcc attribute support

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21522 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 3f964b10
......@@ -985,6 +985,7 @@ HAVE_LIST="
alsa_asoundlib_h
altivec_h
arpa_inet_h
attribute_may_alias
attribute_packed
bswap
closesocket
......@@ -2298,6 +2299,10 @@ check_cc <<EOF && enable attribute_packed
struct { int x; } __attribute__((packed)) x;
EOF
check_cc <<EOF && enable attribute_may_alias
union { int x; } __attribute__((may_alias)) x;
EOF
check_cc <<EOF || die "endian test failed"
unsigned int endian = 'B' << 24 | 'I' << 16 | 'G' << 8 | 'E';
EOF
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment