time/Convert: forward-declare struct tm

This commit is contained in:
Max Kellermann 2024-05-10 17:17:16 +02:00 committed by Max Kellermann
parent a739eefb01
commit 2ce8310448
1 changed files with 3 additions and 4 deletions

View File

@ -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