comparison 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
comparison
equal deleted inserted replaced
2007:f612c1bd2c8b 2008:a8e3e816a50d
19 #include <time.h> 19 #include <time.h>
20 #include "genesis.h" 20 #include "genesis.h"
21 #include "net.h" 21 #include "net.h"
22 #include "util.h" 22 #include "util.h"
23 23
24 #ifdef _WIN32 24 #if defined(_WIN32) || defined(__APPLE__)
25 # if BYTE_ORDER == LITTLE_ENDIAN 25 # if BYTE_ORDER == LITTLE_ENDIAN
26 #define htobe64(val) ((((uint64_t)htonl((val)&0xFFFFFFFF))<<32) | htonl((val)>>32)) 26 #define htobe64(val) ((((uint64_t)htonl((val)&0xFFFFFFFF))<<32) | htonl((val)>>32))
27 # else 27 # else
28 #define htobe64(val) (val) 28 #define htobe64(val) (val)
29 # endif 29 # endif