diff megawifi.c @ 2008:a8e3e816a50d

Fix build breakage on OS X
author Michael Pavone <pavone@retrodev.com>
date Fri, 16 Oct 2020 22:13:07 -0700
parents 41b9509ede38
children
line wrap: on
line diff
--- a/megawifi.c	Fri Oct 16 22:12:48 2020 -0700
+++ b/megawifi.c	Fri Oct 16 22:13:07 2020 -0700
@@ -21,7 +21,7 @@
 #include "net.h"
 #include "util.h"
 
-#ifdef _WIN32
+#if defined(_WIN32) || defined(__APPLE__)
 #  if BYTE_ORDER == LITTLE_ENDIAN
 #define htobe64(val)   ((((uint64_t)htonl((val)&0xFFFFFFFF))<<32) | htonl((val)>>32))
 #  else