From 2ce83104488461b8e49fab20ec2f60be5d32e979 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 10 May 2024 17:17:16 +0200 Subject: [PATCH] time/Convert: forward-declare struct tm --- src/time/Convert.hxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/time/Convert.hxx b/src/time/Convert.hxx index 1adc4f6d5..597cccf65 100644 --- a/src/time/Convert.hxx +++ b/src/time/Convert.hxx @@ -2,11 +2,12 @@ // Copyright CM4all GmbH // author: Max Kellermann -#ifndef TIME_CONVERT_HXX -#define TIME_CONVERT_HXX +#pragma once #include +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