From 82ca3aa281a346c455eeb89130f28ca46a668447 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 8 May 2019 16:24:31 +0200 Subject: [PATCH] time/ISO8601: forward-declare StringBuffer --- src/song/ModifiedSinceSongFilter.cxx | 1 + src/time/ISO8601.cxx | 3 ++- src/time/ISO8601.hxx | 6 ++++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/song/ModifiedSinceSongFilter.cxx b/src/song/ModifiedSinceSongFilter.cxx index e490bce8a..b26ebbf28 100644 --- a/src/song/ModifiedSinceSongFilter.cxx +++ b/src/song/ModifiedSinceSongFilter.cxx @@ -20,6 +20,7 @@ #include "ModifiedSinceSongFilter.hxx" #include "LightSong.hxx" #include "time/ISO8601.hxx" +#include "util/StringBuffer.hxx" std::string ModifiedSinceSongFilter::ToExpression() const noexcept diff --git a/src/time/ISO8601.cxx b/src/time/ISO8601.cxx index b9ce08361..fb6d32899 100644 --- a/src/time/ISO8601.cxx +++ b/src/time/ISO8601.cxx @@ -1,5 +1,5 @@ /* - * Copyright 2007-2017 Content Management AG + * Copyright 2007-2019 Content Management AG * All rights reserved. * * author: Max Kellermann @@ -33,6 +33,7 @@ #include "ISO8601.hxx" #include "Convert.hxx" #include "Parser.hxx" +#include "util/StringBuffer.hxx" StringBuffer<64> FormatISO8601(const struct tm &tm) noexcept diff --git a/src/time/ISO8601.hxx b/src/time/ISO8601.hxx index 10a171d26..1e13f17be 100644 --- a/src/time/ISO8601.hxx +++ b/src/time/ISO8601.hxx @@ -1,5 +1,5 @@ /* - * Copyright 2007-2017 Content Management AG + * Copyright 2007-2019 Content Management AG * All rights reserved. * * author: Max Kellermann @@ -33,13 +33,15 @@ #ifndef TIME_ISO8601_HXX #define TIME_ISO8601_HXX -#include "util/StringBuffer.hxx" #include "util/Compiler.h" #include #include +#include + struct tm; +template class StringBuffer; gcc_pure StringBuffer<64>