diff options
author | Jean-André Santoni <jean.andre.santoni@gmail.com> | 2020-08-28 12:00:52 +0700 |
---|---|---|
committer | twinaphex <libretro@gmail.com> | 2021-03-12 08:41:57 +0100 |
commit | 60f93148665af3513ab43cb7b83ff5d6be9286c8 (patch) | |
tree | 3937579c88a0fa075348fcbc5cb51cfba5603023 | |
parent | f0a4e31eaad0bf6f53a9b8d056ea6e9ad88485cc (diff) |
Fix building on OSX
-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 |