diff options
author | Måns Rullgård <mans@mansr.com> | 2010-01-29 03:26:12 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2010-01-29 03:26:12 +0000 |
commit | dffb41b95349acbe97da69947f5d05f17d06045c (patch) | |
tree | f4f47a1bd730dba5afa9ef2d4a9bf06b3dac760b | |
parent | 68a4d3498f28eff3508595283074e1ed8493879d (diff) | |
download | ffmpeg-dffb41b95349acbe97da69947f5d05f17d06045c.tar.gz |
Check for may_alias gcc attribute support
Originally committed as revision 21522 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rwxr-xr-x | configure | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |