diff options
author | Max Kellermann <max@musicpd.org> | 2019-05-08 16:24:31 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2019-12-16 23:02:59 +0100 |
commit | aeb89aa9d6f1c74fd87c6de17f9f5f4bfc41d612 (patch) | |
tree | 7b2dba0ea7c69edb9500a0c44bc380519a4898fc /src | |
parent | f885807ecc1d81606dc8fae16092ae6dccc7402e (diff) |
time/ISO8601: forward-declare StringBuffer
Diffstat (limited to 'src')
-rw-r--r-- | src/song/ModifiedSinceSongFilter.cxx | 1 | ||||
-rw-r--r-- | src/time/ISO8601.cxx | 3 | ||||
-rw-r--r-- | src/time/ISO8601.hxx | 7 |
3 files changed, 7 insertions, 4 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 <mk@cm4all.com> @@ -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 <mk@cm4all.com> @@ -33,13 +33,14 @@ #ifndef TIME_ISO8601_HXX #define TIME_ISO8601_HXX -#include "util/StringBuffer.hxx" #include "util/Compiler.h" -#include <string> #include <chrono> +#include <stddef.h> + struct tm; +template<size_t CAPACITY> class StringBuffer; gcc_pure StringBuffer<64> |