From aeb89aa9d6f1c74fd87c6de17f9f5f4bfc41d612 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 8 May 2019 16:24:31 +0200 Subject: time/ISO8601: forward-declare StringBuffer --- src/song/ModifiedSinceSongFilter.cxx | 1 + src/time/ISO8601.cxx | 3 ++- src/time/ISO8601.hxx | 7 ++++--- 3 files changed, 7 insertions(+), 4 deletions(-) (limited to 'src') 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..b6788a458 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,14 @@ #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> -- cgit v1.2.3