We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f17973c commit fedb009Copy full SHA for fedb009
src/script/interpreter.cpp
@@ -16,6 +16,12 @@ extern "C" {
16
#include <simplicity/elements/exec.h>
17
#include <simplicity/errorCodes.h>
18
}
19
+// ELEMENTS: Macos compat for htole32 and htole64
20
+#if defined(__APPLE__)
21
+ #include <libkern/OSByteOrder.h>
22
+ #define htole32(x) OSSwapHostToLittleInt32(x)
23
+ #define htole64(x) OSSwapHostToLittleInt64(x)
24
+#endif
25
26
typedef std::vector<unsigned char> valtype;
27
0 commit comments