time/Convert: forward-declare struct tm
This commit is contained in:
parent
a739eefb01
commit
2ce8310448
|
@ -2,11 +2,12 @@
|
|||
// Copyright CM4all GmbH
|
||||
// author: Max Kellermann <mk@cm4all.com>
|
||||
|
||||
#ifndef TIME_CONVERT_HXX
|
||||
#define TIME_CONVERT_HXX
|
||||
#pragma once
|
||||
|
||||
#include <chrono>
|
||||
|
||||
struct tm;
|
||||
|
||||
/**
|
||||
* Convert a UTC-based time point to a UTC-based "struct tm".
|
||||
*
|
||||
|
@ -40,5 +41,3 @@ MakeTime(struct tm &tm) noexcept;
|
|||
[[gnu::pure]]
|
||||
std::chrono::steady_clock::duration
|
||||
ToSteadyClockDuration(const struct timeval &tv) noexcept;
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue