From 73a64baac30f5c478201e9f86dc4dd5ef85f0192 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 28 May 2021 10:41:36 +0200 Subject: Fix few Windows/VC compatibility issues --- libbuild2/target-key.hxx | 8 ++++---- libbuild2/target.hxx | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/libbuild2/target-key.hxx b/libbuild2/target-key.hxx index 2cc58f9..f5351b8 100644 --- a/libbuild2/target-key.hxx +++ b/libbuild2/target-key.hxx @@ -21,10 +21,10 @@ namespace build2 class LIBBUILD2_SYMEXPORT target_key { public: - const target_type* const type; - const dir_path* const dir; // Can be relative if part of prerequisite_key. - const dir_path* const out; // Can be relative if part of prerequisite_key. - const string* const name; + const target_type* type; + const dir_path* dir; // Can be relative if part of prerequisite_key. + const dir_path* out; // Can be relative if part of prerequisite_key. + const string* name; mutable optional ext; // Absent - unspecified, empty - none. template diff --git a/libbuild2/target.hxx b/libbuild2/target.hxx index 10abf16..56b10c0 100644 --- a/libbuild2/target.hxx +++ b/libbuild2/target.hxx @@ -1940,10 +1940,10 @@ namespace build2 string&, optional&, const location&, bool); - const char* + LIBBUILD2_SYMEXPORT const char* target_extension_none (const target_key&, const scope*); - const char* + LIBBUILD2_SYMEXPORT const char* target_extension_must (const target_key&, const scope*); // Get the extension from the `extension` variable or use the default if -- cgit v1.1