Ticket #11136: patch-mythtv-libs-libmythtv-avformatwriter.cpp.diff

File patch-mythtv-libs-libmythtv-avformatwriter.cpp.diff, 635 bytes (added by Craig Treleaven <ctreleaven@…>, 8 years ago)
  • mythtv/libs/libmythtv/avformatwriter.cpp

     
    2424#include "NuppelVideoRecorder.h"
    2525#include "avformatwriter.h"
    2626
    27 #if HAVE_BIGENDIAN
    28 extern "C" {
    29 #include "byteswap.h"
    30 }
     27#if HAVE_BYTESWAP_H
     28#include <byteswap.h>
     29#elif HAVE_SYS_ENDIAN_H
     30#include <sys/endian.h>
     31#elif CONFIG_DARWIN
     32#include <libkern/OSByteOrder.h>
     33#define bswap_16 OSSwapInt16
     34#define bswap_32 OSSwapInt32
     35#elif HAVE_BIGENDIAN
     36#error No bswap functions defined
    3137#endif
    3238
    3339#define LOC QString("AVFW(%1): ").arg(m_filename)