Skip to content

Commit

Permalink
mythcdrom-linux.cpp: replace HAVE_BIGENDIAN with Q_BYTE_ORDER == Q_BI…
Browse files Browse the repository at this point in the history
…G_ENDIAN
  • Loading branch information
ulmus-scott committed Jan 3, 2022
1 parent 35b9fb1 commit 1dd23b7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions mythtv/libs/libmythbase/mythcdrom-linux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
#include <sys/types.h>
#include <unistd.h>

#include <QtGlobal>
#include <QDateTime>

#include "mythcdrom.h"
#include "mythcdrom-linux.h"
#include "mythconfig.h" // for HAVE_BIGENDIAN
#include "mythlogging.h"
#include "mythdate.h"

Expand Down Expand Up @@ -44,7 +44,7 @@ extern "C" {
struct CDROMeventStatus
{
uint16_t m_dataLen[2];
#if HAVE_BIGENDIAN
#if (Q_BYTE_ORDER == Q_BIG_ENDIAN)
uint8_t m_nea : 1;
uint8_t m_reserved1 : 4;
uint8_t m_notificationClass : 3;
Expand All @@ -54,7 +54,7 @@ struct CDROMeventStatus
uint8_t m_nea : 1;
#endif
uint8_t m_suppEventClass;
#if HAVE_BIGENDIAN
#if (Q_BYTE_ORDER == Q_BIG_ENDIAN)
uint8_t m_reserved2 : 4;
uint8_t m_mediaEventCode : 4;
uint8_t m_reserved3 : 6;
Expand All @@ -74,7 +74,7 @@ struct CDROMeventStatus
// and this is returned by GPCMD_READ_DISC_INFO
struct CDROMdiscInfo {
uint16_t m_discInformationLength;
#if HAVE_BIGENDIAN
#if (Q_BYTE_ORDER == Q_BIG_ENDIAN)
uint8_t m_reserved1 : 3;
uint8_t m_erasable : 1;
uint8_t m_borderStatus : 2;
Expand All @@ -89,7 +89,7 @@ struct CDROMdiscInfo {
uint8_t m_nSessionsLsb;
uint8_t m_firstTrackLsb;
uint8_t m_lastTrackLsb;
#if HAVE_BIGENDIAN
#if (Q_BYTE_ORDER == Q_BIG_ENDIAN)
uint8_t m_didV : 1;
uint8_t m_dbcV : 1;
uint8_t m_uru : 1;
Expand Down

0 comments on commit 1dd23b7

Please sign in to comment.