We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1dd410 commit cf4d956Copy full SHA for cf4d956
plugins/dogma/dogma/tdc5.h
@@ -1,7 +1,16 @@
1
#pragma once
2
3
-#include <stdint.h>
+#include <cstdint>
4
+
5
+#if defined(__MACH__) /* Apple OSX section */
6
+// #include <machine/endian.h>
7
+#include <libkern/OSByteOrder.h>
8
+#define be16toh(x) OSSwapBigToHostInt16(x)
9
+#define be32toh(x) OSSwapBigToHostInt32(x)
10
+#define be64toh(x) OSSwapBigToHostInt64(x)
11
+#else
12
#include <endian.h>
13
+#endif
14
15
struct tdc5_parse_it {
16
int i;
0 commit comments