From b0e481a653b01e4329bccb1d101d56e3e878e960 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 3 Jun 2016 16:43:46 +0300 Subject: Port to MinGW --- build2/depdb | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'build2/depdb') diff --git a/build2/depdb b/build2/depdb index 74b6678..6dec29e 100644 --- a/build2/depdb +++ b/build2/depdb @@ -154,7 +154,17 @@ namespace build2 } string* - expect (const path& v) {return expect (v.string ());} + expect (const path& v) + { + string* l (read ()); + if (l == nullptr || path::traits::compare (*l, v.string ()) != 0) + { + write (v); + return l; + } + + return nullptr; + } string* expect (const char* v) -- cgit v1.1