mirror of https://github.com/ArduPilot/ardupilot
AP_Filesystem: avoid some warnings in AP_Scripting
This commit is contained in:
parent
911d643c35
commit
bceee69a6c
|
@ -49,6 +49,8 @@ int apfs_feof(APFS_FILE *stream);
|
||||||
long apfs_ftell(APFS_FILE *stream);
|
long apfs_ftell(APFS_FILE *stream);
|
||||||
APFS_FILE *apfs_freopen(const char *pathname, const char *mode, APFS_FILE *stream);
|
APFS_FILE *apfs_freopen(const char *pathname, const char *mode, APFS_FILE *stream);
|
||||||
int apfs_remove(const char *pathname);
|
int apfs_remove(const char *pathname);
|
||||||
|
int apfs_rename(const char *oldpath, const char *newpath);
|
||||||
|
char *tmpnam(char *s);
|
||||||
|
|
||||||
#undef stdin
|
#undef stdin
|
||||||
#undef stdout
|
#undef stdout
|
||||||
|
@ -87,6 +89,7 @@ int apfs_remove(const char *pathname);
|
||||||
#define ftell(stream) apfs_ftell(stream)
|
#define ftell(stream) apfs_ftell(stream)
|
||||||
#define freopen(pathname, mode, stream) apfs_freopen(pathname, mode, stream)
|
#define freopen(pathname, mode, stream) apfs_freopen(pathname, mode, stream)
|
||||||
#define remove(pathname) apfs_remove(pathname)
|
#define remove(pathname) apfs_remove(pathname)
|
||||||
|
#define rename(oldpath, newpath) apfs_rename(oldpath, newpath)
|
||||||
#if !defined(__APPLE__)
|
#if !defined(__APPLE__)
|
||||||
int sprintf(char *str, const char *format, ...);
|
int sprintf(char *str, const char *format, ...);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue