1
0
mirror of https://github.com/gabime/spdlog.git synced 2025-04-30 20:33:51 +00:00
This commit is contained in:
gabime 2024-01-14 13:19:14 +02:00
parent f743a881b2
commit 95587b7601

View File

@ -322,7 +322,7 @@ std::string getenv(const char *field) {
return buf != nullptr ? buf : std::string{}; return buf != nullptr ? buf : std::string{};
} }
// Do fsync by FILE handlerpointer // Do fsync by FILE pointer
// Return true on success // Return true on success
bool fsync(FILE *fp) { return ::fsync(fileno(fp)) == 0; } bool fsync(FILE *fp) { return ::fsync(fileno(fp)) == 0; }