Fix fcloseall not defined on some platform

This commit is contained in:
2022-05-31 00:32:31 +00:00
committed by GitHub
parent 3a02cfa641
commit 976582828b
4 changed files with 12 additions and 1 deletions

View File

@@ -539,7 +539,9 @@ std::string fileop::filename(std::string path) {
int fileop::fcloseall() {
#if _WIN32
return ::_fcloseall();
#else
#elif HAVE_FCLOSEALL
return ::fcloseall();
#else
return 0;
#endif
}