mirror of
https://github.com/lifegpc/c-utils.git
synced 2026-06-12 00:08:46 +08:00
Fix fcloseall not defined on some platform
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user