diff --git a/configure.py b/configure.py index 5329411d..63d48e6c 100644 --- a/configure.py +++ b/configure.py @@ -1726,7 +1726,7 @@ config.libs = [ Object(NonMatching, "fa/pf_fadjust.c"), Object(NonMatching, "fa/pf_fappend.c"), Object(NonMatching, "fa/pf_fchdir.c"), - Object(NonMatching, "fa/pf_fclose.c"), + Object(Matching, "fa/pf_fclose.c"), Object(NonMatching, "fa/pf_fconcat.c"), Object(NonMatching, "fa/pf_feof.c"), Object(NonMatching, "fa/pf_ferror.c"), diff --git a/libs/RVL_SDK/src/fa/pf_fclose.c b/libs/RVL_SDK/src/fa/pf_fclose.c new file mode 100644 index 00000000..fcddb5f3 --- /dev/null +++ b/libs/RVL_SDK/src/fa/pf_fclose.c @@ -0,0 +1,10 @@ +#include + +extern s32 PFFILE_fclose(FAFILE* stream); +extern s32 PFAPI_convertReturnValue(s32 error); + +FAError pf2_fclose(FAFILE* stream) { + s32 error = PFFILE_fclose(stream); + error = PFAPI_convertReturnValue(error); + return error; +}