blob: 8b7982c6d2b7a0cef2f2708eed4574cac6edb217 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
--- src/audiofile.cpp.orig 2015-10-23 22:39:25 UTC
+++ src/audiofile.cpp
@@ -20,7 +20,10 @@
#include <ucommon/ucommon.h>
#include <ccaudio2-config.h>
#ifdef HAVE_ENDIAN_H
-#include <endian.h>
+#include <sys/endian.h>
+#define __LITTLE_ENDIAN (_BYTE_ORDER == _LITTLE_ENDIAN)
+#define __BIG_ENDIAN (_BYTE_ORDER == _BIG_ENDIAN)
+#define __BYTE_ORDER _BYTE_ORDER
#endif
#include <ucommon/export.h>
#include <ccaudio2.h>
|