Skip to content

Commit cf4d956

Browse files
committed
Apply mac changes
1 parent a1dd410 commit cf4d956

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

plugins/dogma/dogma/tdc5.h

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
#pragma once
22

3-
#include <stdint.h>
3+
#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
412
#include <endian.h>
13+
#endif
514

615
struct tdc5_parse_it {
716
int i;

0 commit comments

Comments
 (0)