Skip to content

Commit

Permalink
Update simple_writer.cpp
Browse files Browse the repository at this point in the history
Fix Windows Check
  • Loading branch information
HTRamsey committed Aug 8, 2024
1 parent e6a241e commit 35fb28f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ulog_cpp/simple_writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#include "simple_writer.hpp"

#ifdef WINDOWS
#ifdef _WIN32
#include <fileapi.h>
#else
#include <unistd.h>
Expand Down Expand Up @@ -112,7 +112,7 @@ void SimpleWriter::fsync()
{
if (_file) {
fflush(_file);
#ifdef WINDOWS
#ifdef _WIN32
FlushFileBuffers(static_cast<HANDLE>(_fileno(_file)));
#else
::fsync(fileno(_file));
Expand Down

0 comments on commit 35fb28f

Please sign in to comment.