mirror of
https://github.com/wassname/ray.git
synced 2026-08-14 12:40:23 +08:00
13 lines
332 B
Diff
13 lines
332 B
Diff
diff --git a/src/endian.h b/src/endian.h
|
|
new file
|
|
index e69de29..4d9eb94
|
|
--- /dev/null
|
|
+++ b/src/endian.h
|
|
@@ -0,0 +1,6 @@
|
|
+#ifdef _MSC_VER
|
|
+#define __builtin_expect(x, z) (x)
|
|
+#define __builtin_bswap16(x) _byteswap_ushort(x)
|
|
+#define __builtin_bswap32(x) _byteswap_ulong(x)
|
|
+#define __builtin_bswap64(x) _byteswap_uint64(x)
|
|
+#endif
|