summaryrefslogtreecommitdiffstats
path: root/include/mingw/arpa/inet.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/mingw/arpa/inet.h')
-rw-r--r--include/mingw/arpa/inet.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/mingw/arpa/inet.h b/include/mingw/arpa/inet.h
new file mode 100644
index 0000000..55dfa36
--- /dev/null
+++ b/include/mingw/arpa/inet.h
@@ -0,0 +1,5 @@
+#pragma once
+
+/* Windows is always little endian. */
+#define htonl __builtin_bswap32
+#define ntohl __builtin_bswap32