mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
Check for may_alias gcc attribute support
Originally committed as revision 21522 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
68a4d3498f
commit
dffb41b953
5
configure
vendored
5
configure
vendored
@ -985,6 +985,7 @@ HAVE_LIST="
|
|||||||
alsa_asoundlib_h
|
alsa_asoundlib_h
|
||||||
altivec_h
|
altivec_h
|
||||||
arpa_inet_h
|
arpa_inet_h
|
||||||
|
attribute_may_alias
|
||||||
attribute_packed
|
attribute_packed
|
||||||
bswap
|
bswap
|
||||||
closesocket
|
closesocket
|
||||||
@ -2298,6 +2299,10 @@ check_cc <<EOF && enable attribute_packed
|
|||||||
struct { int x; } __attribute__((packed)) x;
|
struct { int x; } __attribute__((packed)) x;
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
check_cc <<EOF && enable attribute_may_alias
|
||||||
|
union { int x; } __attribute__((may_alias)) x;
|
||||||
|
EOF
|
||||||
|
|
||||||
check_cc <<EOF || die "endian test failed"
|
check_cc <<EOF || die "endian test failed"
|
||||||
unsigned int endian = 'B' << 24 | 'I' << 16 | 'G' << 8 | 'E';
|
unsigned int endian = 'B' << 24 | 'I' << 16 | 'G' << 8 | 'E';
|
||||||
EOF
|
EOF
|
||||||
|
Loading…
x
Reference in New Issue
Block a user