29 lines
629 B
Text
29 lines
629 B
Text
Index: src/a2dp-codecs.h
|
|
--- src/a2dp-codecs.h.orig
|
|
+++ src/a2dp-codecs.h
|
|
@@ -11,6 +11,7 @@
|
|
#define BLUEZQT_A2DPCODECS_H
|
|
|
|
#include <stdint.h>
|
|
+#include <endian.h>
|
|
|
|
// clang-format off
|
|
|
|
@@ -141,7 +142,7 @@ typedef struct {
|
|
uint16_t codec_id;
|
|
} __attribute__ ((packed)) a2dp_vendor_codec_t;
|
|
|
|
-#if __BYTE_ORDER == __LITTLE_ENDIAN
|
|
+#if BYTE_ORDER == LITTLE_ENDIAN
|
|
|
|
typedef struct {
|
|
uint8_t channel_mode:4;
|
|
@@ -186,7 +187,7 @@ typedef struct {
|
|
uint8_t unknown[2];
|
|
} __attribute__ ((packed)) a2dp_ldac_t;
|
|
|
|
-#elif __BYTE_ORDER == __BIG_ENDIAN
|
|
+#elif BYTE_ORDER == BIG_ENDIAN
|
|
|
|
typedef struct {
|
|
uint8_t frequency:4;
|