Skip to content

Commit

Permalink
time/Convert: forward-declare struct tm
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKellermann committed Jun 25, 2024
1 parent a739eef commit 2ce8310
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/time/Convert.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
// Copyright CM4all GmbH
// author: Max Kellermann <[email protected]>

#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".
*
Expand Down Expand Up @@ -40,5 +41,3 @@ MakeTime(struct tm &tm) noexcept;
[[gnu::pure]]
std::chrono::steady_clock::duration
ToSteadyClockDuration(const struct timeval &tv) noexcept;

#endif

0 comments on commit 2ce8310

Please sign in to comment.