From e20fc3d4f60e90757aa4f8336045f352ebc975f6 Mon Sep 17 00:00:00 2001 From: Andy Piper Date: Tue, 20 Apr 2021 15:53:00 +0100 Subject: [PATCH] AP_Filesystem: fix build on macOS --- libraries/AP_Filesystem/posix_compat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Filesystem/posix_compat.h b/libraries/AP_Filesystem/posix_compat.h index f6961e2655..8eff6eafd2 100644 --- a/libraries/AP_Filesystem/posix_compat.h +++ b/libraries/AP_Filesystem/posix_compat.h @@ -88,9 +88,9 @@ char *tmpnam(char *s); #define feof(stream) apfs_ferror(stream) #define ftell(stream) apfs_ftell(stream) #define freopen(pathname, mode, stream) apfs_freopen(pathname, mode, stream) -#define remove(pathname) apfs_remove(pathname) #define rename(oldpath, newpath) apfs_rename(oldpath, newpath) #if !defined(__APPLE__) +#define remove(pathname) apfs_remove(pathname) int sprintf(char *str, const char *format, ...); #endif