diff options
-rw-r--r-- | Makefile.libretro | 5 | ||||
-rw-r--r-- | megawifi.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/Makefile.libretro b/Makefile.libretro index afe6019..54df090 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -18,6 +18,11 @@ else ifneq ($(findstring MINGW32,$(UNAME)),) libname = blastem_libretro.dll else ifneq ($(findstring Darwin,$(UNAME)),) platform = osx + OS :=Darwin + CC :=gcc + ABI := x86_64 + target = libblastem.dylib + libname = blastem_libretro.dylib else platform = linux OS :=Linux @@ -21,7 +21,7 @@ #include "net.h" #include "util.h" -#if defined(_WIN32) || defined(__APPLE__) +#if defined(__APPLE__) || !defined(_WIN32) || defined(__MINGW32__) # if BYTE_ORDER == LITTLE_ENDIAN #define htobe64(val) ((((uint64_t)htonl((val)&0xFFFFFFFF))<<32) | htonl((val)>>32)) # else |