diff --git a/build.sh b/build.sh index 75c4921..13ac751 100755 --- a/build.sh +++ b/build.sh @@ -64,7 +64,7 @@ MSYS_NT*|MINGW*) # MSYS2 on Windows fi ;; Darwin) # macOS - CFLAGS="${CFLAGS} -Wno-typedef-redefinition -D_C99_SOURCE" + CFLAGS="${CFLAGS} -Wno-typedef-redefinition -D_C99_SOURCE -D_DARWIN_BETTER_REALPATH" UXNEMU_LDFLAGS="$(sdl2-config --cflags --static-libs)" ;; Linux|*) diff --git a/src/devices/screen.c b/src/devices/screen.c index 4012086..bc6b2dd 100644 --- a/src/devices/screen.c +++ b/src/devices/screen.c @@ -50,7 +50,8 @@ screen_change(int x1, int y1, int x2, int y2) void screen_palette(void) { - int i, shift, colors[4]; + int i, shift; + unsigned long colors[4]; for(i = 0, shift = 4; i < 4; ++i, shift ^= 4) { Uint8 r = (uxn.dev[0x8 + i / 2] >> shift) & 0xf,