mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
Packed structures are defined differently in older gcc's, like the one
currently in -stable. Put the exception into usb.h instead of having it hard coded in the sound code.
This commit is contained in:
parent
a1571cd12f
commit
8ecdcb3ff3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=106529
@ -55,10 +55,6 @@
|
||||
#define UDESCSUB_AC_PROCESSING 7
|
||||
#define UDESCSUB_AC_EXTENSION 8
|
||||
|
||||
#if defined(__FreeBSD__) && (__FreeBSD_version <= 500014)
|
||||
#define UPACKED __attribute__ ((packed))
|
||||
#endif
|
||||
|
||||
/* The first fields are identical to usb_endpoint_descriptor_t */
|
||||
typedef struct {
|
||||
uByte bLength;
|
||||
|
@ -98,7 +98,11 @@ typedef u_int8_t uDWord[4];
|
||||
#define USETDW(w,v) (*(u_int32_t *)(w) = (v))
|
||||
#endif
|
||||
|
||||
#if defined(__FreeBSD__) && (__FreeBSD_version <= 500014)
|
||||
#define UPACKED __attribute__ ((packed))
|
||||
#else
|
||||
#define UPACKED __packed
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
uByte bmRequestType;
|
||||
|
Loading…
Reference in New Issue
Block a user