AP_Filesystem: avoid some warnings in AP_Scripting

This commit is contained in:
Andrew Tridgell 2020-04-24 12:27:29 +10:00
parent 911d643c35
commit bceee69a6c
1 changed files with 3 additions and 0 deletions

View File

@ -49,6 +49,8 @@ int apfs_feof(APFS_FILE *stream);
long apfs_ftell(APFS_FILE *stream);
APFS_FILE *apfs_freopen(const char *pathname, const char *mode, APFS_FILE *stream);
int apfs_remove(const char *pathname);
int apfs_rename(const char *oldpath, const char *newpath);
char *tmpnam(char *s);
#undef stdin
#undef stdout
@ -87,6 +89,7 @@ int apfs_remove(const char *pathname);
#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__)
int sprintf(char *str, const char *format, ...);
#endif