1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +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:
Josef Karthauser 2002-11-06 21:37:21 +00:00
parent a1571cd12f
commit 8ecdcb3ff3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=106529
2 changed files with 4 additions and 4 deletions

View File

@ -55,10 +55,6 @@
#define UDESCSUB_AC_PROCESSING 7 #define UDESCSUB_AC_PROCESSING 7
#define UDESCSUB_AC_EXTENSION 8 #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 */ /* The first fields are identical to usb_endpoint_descriptor_t */
typedef struct { typedef struct {
uByte bLength; uByte bLength;

View File

@ -98,7 +98,11 @@ typedef u_int8_t uDWord[4];
#define USETDW(w,v) (*(u_int32_t *)(w) = (v)) #define USETDW(w,v) (*(u_int32_t *)(w) = (v))
#endif #endif
#if defined(__FreeBSD__) && (__FreeBSD_version <= 500014)
#define UPACKED __attribute__ ((packed))
#else
#define UPACKED __packed #define UPACKED __packed
#endif
typedef struct { typedef struct {
uByte bmRequestType; uByte bmRequestType;