summaryrefslogtreecommitdiffstats
path: root/libmpdemux
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-07-31 23:37:56 +0200
committerwm4 <wm4@nowhere>2012-07-31 23:37:56 +0200
commitf752212c6235316e681fade76c5693d46df7d310 (patch)
treeae098ae650e99ff9a4a50bf3c7b0f7cd8b1b841a /libmpdemux
parent0744d99c5df3a2c7b3600083c97785eb3e6215b2 (diff)
downloadmpv-f752212c6235316e681fade76c5693d46df7d310.tar.bz2
mpv-f752212c6235316e681fade76c5693d46df7d310.tar.xz
Change <endian.h> include to <sys/types.h>
This seems to be more portable. Should fix compilation on OSX and FreeBSD. Apparently also works on MinGW-w64.
Diffstat (limited to 'libmpdemux')
-rw-r--r--libmpdemux/asf.h2
-rw-r--r--libmpdemux/aviheader.h1
-rw-r--r--libmpdemux/ms_hdr.h2
3 files changed, 2 insertions, 3 deletions
diff --git a/libmpdemux/asf.h b/libmpdemux/asf.h
index ba1eff6e7f..2886a4d752 100644
--- a/libmpdemux/asf.h
+++ b/libmpdemux/asf.h
@@ -19,7 +19,7 @@
#ifndef MPLAYER_ASF_H
#define MPLAYER_ASF_H
-#include <endian.h>
+#include <sys/types.h>
#include <inttypes.h>
#include "libavutil/common.h"
#include "mpbswap.h"
diff --git a/libmpdemux/aviheader.h b/libmpdemux/aviheader.h
index a65ee15392..1629a33b57 100644
--- a/libmpdemux/aviheader.h
+++ b/libmpdemux/aviheader.h
@@ -21,7 +21,6 @@
#include <sys/types.h>
#include <stdint.h>
-#include <endian.h>
#include "config.h"
#include "libavutil/common.h"
#include "mpbswap.h"
diff --git a/libmpdemux/ms_hdr.h b/libmpdemux/ms_hdr.h
index 5b5dff6008..8e545635dd 100644
--- a/libmpdemux/ms_hdr.h
+++ b/libmpdemux/ms_hdr.h
@@ -19,7 +19,7 @@
#ifndef MPLAYER_MS_HDR_H
#define MPLAYER_MS_HDR_H
-#include <endian.h>
+#include <sys/types.h>
#include "config.h"
#ifndef _WAVEFORMATEX_