mirror of
https://github.com/mpv-player/mpv
synced 2025-04-17 04:40:09 +00:00
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.
This commit is contained in:
parent
0744d99c5d
commit
f752212c62
@ -26,7 +26,7 @@
|
|||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <endian.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "af.h"
|
#include "af.h"
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
#ifndef MPLAYER_AF_FORMAT_H
|
#ifndef MPLAYER_AF_FORMAT_H
|
||||||
#define MPLAYER_AF_FORMAT_H
|
#define MPLAYER_AF_FORMAT_H
|
||||||
|
|
||||||
#include <endian.h>
|
#include <sys/types.h>
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
// Endianness
|
// Endianness
|
||||||
|
@ -44,7 +44,6 @@
|
|||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <endian.h>
|
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "mp_msg.h"
|
#include "mp_msg.h"
|
||||||
|
@ -29,7 +29,6 @@
|
|||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <endian.h>
|
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "mp_msg.h"
|
#include "mp_msg.h"
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <endian.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
#include <libavutil/intreadwrite.h>
|
#include <libavutil/intreadwrite.h>
|
||||||
#include <libavutil/common.h>
|
#include <libavutil/common.h>
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
#ifndef MPLAYER_IMG_FORMAT_H
|
#ifndef MPLAYER_IMG_FORMAT_H
|
||||||
#define MPLAYER_IMG_FORMAT_H
|
#define MPLAYER_IMG_FORMAT_H
|
||||||
|
|
||||||
#include <endian.h>
|
#include <sys/types.h>
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
/* RGB/BGR Formats */
|
/* RGB/BGR Formats */
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <endian.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
#include <libavutil/common.h>
|
#include <libavutil/common.h>
|
||||||
#include <libavutil/opt.h>
|
#include <libavutil/opt.h>
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <endian.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
#include <endian.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "mp_msg.h"
|
#include "mp_msg.h"
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
#ifndef MPLAYER_ASF_H
|
#ifndef MPLAYER_ASF_H
|
||||||
#define MPLAYER_ASF_H
|
#define MPLAYER_ASF_H
|
||||||
|
|
||||||
#include <endian.h>
|
#include <sys/types.h>
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
#include "libavutil/common.h"
|
#include "libavutil/common.h"
|
||||||
#include "mpbswap.h"
|
#include "mpbswap.h"
|
||||||
|
@ -21,7 +21,6 @@
|
|||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <endian.h>
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "libavutil/common.h"
|
#include "libavutil/common.h"
|
||||||
#include "mpbswap.h"
|
#include "mpbswap.h"
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
#ifndef MPLAYER_MS_HDR_H
|
#ifndef MPLAYER_MS_HDR_H
|
||||||
#define MPLAYER_MS_HDR_H
|
#define MPLAYER_MS_HDR_H
|
||||||
|
|
||||||
#include <endian.h>
|
#include <sys/types.h>
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#ifndef _WAVEFORMATEX_
|
#ifndef _WAVEFORMATEX_
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
#include "osd.h"
|
#include "osd.h"
|
||||||
#include "mp_msg.h"
|
#include "mp_msg.h"
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
#include <endian.h>
|
#include <sys/types.h>
|
||||||
#include "cpudetect.h"
|
#include "cpudetect.h"
|
||||||
|
|
||||||
#if ARCH_X86
|
#if ARCH_X86
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <endian.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "video_out.h"
|
#include "video_out.h"
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <endian.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
#include "talloc.h"
|
#include "talloc.h"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user