Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/audio/aeolus/files/patch-global.h
16461 views
1
--- global.h.orig 2022-05-05 04:18:20 UTC
2
+++ global.h
3
@@ -21,14 +21,14 @@
4
#ifndef __GLOBAL_H
5
#define __GLOBAL_H
6
7
-#include <endian.h>
8
-#ifdef __BYTE_ORDER
9
-#if (__BYTE_ORDER == __LITTLE_ENDIAN)
10
+#include <sys/endian.h>
11
+#ifdef _BYTE_ORDER
12
+#if (_BYTE_ORDER == _LITTLE_ENDIAN)
13
#define WR2(p,v) { (p)[0] = v; (p)[1] = v >> 8; }
14
#define WR4(p,v) { (p)[0] = v; (p)[1] = v >> 8; (p)[2] = v >> 16; (p)[3] = v >> 24; }
15
#define RD2(p) ((p)[0] + ((p)[1] << 8));
16
#define RD4(p) ((p)[0] + ((p)[1] << 8) + ((p)[2] << 16) + ((p)[3] << 24));
17
-#elif (__BYTE_ORDER == __BIG_ENDIAN)
18
+#elif (_BYTE_ORDER == _BIG_ENDIAN)
19
#define WR2(p,v) { (p)[1] = v; (p)[0] = v >> 8; }
20
#define WR4(p,v) { (p)[3] = v; (p)[2] = v >> 8; (p)[1] = v >> 16; (p)[0] = v >> 24; }
21
#define RD2(p) ((p)[1] + ((p)[0] << 8));
22
23