diff --git a/build.sh b/build.sh index 6844ea6..1569737 100755 --- a/build.sh +++ b/build.sh @@ -79,7 +79,7 @@ MSYS_NT*|MINGW*) # MSYS2 on Windows fi ;; Darwin) # macOS - CFLAGS="${CFLAGS} -Wno-typedef-redefinition" + CFLAGS="${CFLAGS} -Wno-typedef-redefinition -D_C99_SOURCE" UXNEMU_LDFLAGS="$(brew --prefix)/lib/libSDL2.a $(sdl2-config --cflags --static-libs | sed -e 's/-lSDL2 //')" ;; Linux|*) diff --git a/src/devices/file.c b/src/devices/file.c index bc7c4fd..a208b8f 100644 --- a/src/devices/file.c +++ b/src/devices/file.c @@ -26,10 +26,6 @@ #define PATH_MAX 4096 #endif -#ifdef __APPLE__ -int snprintf(char *, unsigned long, const char *, ...); -#endif - #include "../uxn.h" #include "file.h"