mirror of
https://github.com/JS8Call-improved/JS8Call-improved
synced 2026-08-13 17:47:36 -04:00
Rename all header files with .h extension Fix function declaration in HamlibTransceiver.h that overrode member function but was not marked override Remove unused variable in Modulator.cpp Remove unused files from source tree Remove duplicate LazyFillComboBox files Reformat codebase to LLVM C++ standard
11 lines
237 B
C++
11 lines
237 B
C++
#include "fileutils.h"
|
|
|
|
void flushFileBuffer(const QFile &f) {
|
|
#ifdef Q_OS_WIN
|
|
FlushFileBuffers(reinterpret_cast<HANDLE>(f.handle()));
|
|
#elif _POSIX_SYNCHRONIZED_IO > 0
|
|
fdatasync(f.handle());
|
|
#else
|
|
fsync(f.handle());
|
|
#endif
|
|
}
|