Skip to content

Commit 1a19764

Browse files
committed
[fix] Compiling error on Windows
1 parent b67a495 commit 1a19764

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/filters/tee.cpp

+7
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@
2929
#include "utils.hpp"
3030

3131
#include <algorithm>
32+
#include <time.h>
33+
34+
#ifdef _WIN32
35+
36+
inline static void localtime_r(const time_t* timer, struct tm* buf) { localtime_s(buf, timer); }
37+
38+
#endif // _WIN32
3239

3340
namespace pipy {
3441

src/os-platform.hpp

+1
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ class FileHandle {
8383

8484
auto get() const -> HANDLE { return m_handle; }
8585
bool valid() const { return m_handle != INVALID_HANDLE_VALUE; }
86+
auto tell() -> size_t;
8687
void seek(size_t pos);
8788
void close();
8889

0 commit comments

Comments
 (0)