diff --git a/src/ISO8601.cpp b/src/ISO8601.cpp index 0acd8adc9..90b4bb3e1 100644 --- a/src/ISO8601.cpp +++ b/src/ISO8601.cpp @@ -32,7 +32,9 @@ #include #include #include +#ifdef PRODUCT_TASKWARRIOR #include +#endif #include #include #include @@ -614,6 +616,7 @@ bool ISO8601d::parse_formatted (Nibbler& n, const std::string& format) //////////////////////////////////////////////////////////////////////////////// bool ISO8601d::parse_named (Nibbler& n) { +#ifdef PRODUCT_TASKWARRIOR n.save (); std::string token; if (n.getUntilWS (token)) @@ -627,6 +630,8 @@ bool ISO8601d::parse_named (Nibbler& n) } n.restore (); +#endif + return false; }