diff --git a/configure.py b/configure.py index 43119778..d58aa420 100644 --- a/configure.py +++ b/configure.py @@ -1729,7 +1729,7 @@ config.libs = [ Object(Matching, "fa/pf_fclose.c"), Object(NonMatching, "fa/pf_fconcat.c"), Object(Matching, "fa/pf_feof.c"), - Object(NonMatching, "fa/pf_ferror.c"), + Object(Matching, "fa/pf_ferror.c"), Object(NonMatching, "fa/pf_finfo.c"), Object(NonMatching, "fa/pf_flock.c"), Object(NonMatching, "fa/pf_fopen.c"), diff --git a/libs/RVL_SDK/src/fa/pf_ferror.c b/libs/RVL_SDK/src/fa/pf_ferror.c new file mode 100644 index 00000000..069f361a --- /dev/null +++ b/libs/RVL_SDK/src/fa/pf_ferror.c @@ -0,0 +1,10 @@ +#include + +extern s32 PFFILE_ferror(FAFILE* stream); +extern s32 PFAPI_convertError(s32 error); + +FAError pf2_ferror(FAFILE* stream) { + s32 error = PFFILE_ferror(stream); + error = PFAPI_convertError(error); + return error; +}