mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-14 00:58:38 +02:00
Check for __attribute__((packed)) support
Not all compilers claiming to be gcc support this attribute. Originally committed as revision 19453 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
df5cdc24b9
commit
e7ea5e3d8d
5
configure
vendored
5
configure
vendored
@ -899,6 +899,7 @@ HAVE_LIST="
|
|||||||
alsa_asoundlib_h
|
alsa_asoundlib_h
|
||||||
altivec_h
|
altivec_h
|
||||||
arpa_inet_h
|
arpa_inet_h
|
||||||
|
attribute_packed
|
||||||
bigendian
|
bigendian
|
||||||
bswap
|
bswap
|
||||||
closesocket
|
closesocket
|
||||||
@ -2165,6 +2166,10 @@ void foo(char * $restrict_keyword p);
|
|||||||
EOF
|
EOF
|
||||||
done
|
done
|
||||||
|
|
||||||
|
check_cc <<EOF && enable attribute_packed
|
||||||
|
struct { int x; } __attribute__((packed)) x;
|
||||||
|
EOF
|
||||||
|
|
||||||
##########################################
|
##########################################
|
||||||
# SDL check
|
# SDL check
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@
|
|||||||
* by per-arch headers.
|
* by per-arch headers.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(__GNUC__)
|
#if HAVE_ATTRIBUTE_PACKED
|
||||||
|
|
||||||
struct unaligned_64 { uint64_t l; } __attribute__((packed));
|
struct unaligned_64 { uint64_t l; } __attribute__((packed));
|
||||||
struct unaligned_32 { uint32_t l; } __attribute__((packed));
|
struct unaligned_32 { uint32_t l; } __attribute__((packed));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user