aboutsummaryrefslogtreecommitdiff
path: root/libbutl/process-details.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-09-22 23:32:28 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-09-22 23:32:28 +0200
commitc09cd7512491cee1e82c1ad8128ce9fd4bc3f79b (patch)
treea659ed768d849130ab5780a11b7f791a463a1a91 /libbutl/process-details.hxx
parent2a00871f07067f8f9e2de08bb9c8f50e1bf6a650 (diff)
Initial modularization with both Clang and VC hacks
Note: gave up on VC about half way though.
Diffstat (limited to 'libbutl/process-details.hxx')
-rw-r--r--libbutl/process-details.hxx13
1 files changed, 7 insertions, 6 deletions
diff --git a/libbutl/process-details.hxx b/libbutl/process-details.hxx
index b078cbb..adb33fd 100644
--- a/libbutl/process-details.hxx
+++ b/libbutl/process-details.hxx
@@ -2,15 +2,18 @@
// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
// license : MIT; see accompanying LICENSE file
-#ifndef LIBBUTL_PROCESS_DETAILS_HXX
-#define LIBBUTL_PROCESS_DETAILS_HXX
-
-#include <mutex>
+#pragma once
#include <libbutl/ft/shared_mutex.hxx>
+
+#ifdef __cpp_lib_modules
+import std.core; //@@ MOD std.threading
+#else
+#include <mutex>
#if defined(__cpp_lib_shared_mutex) || defined(__cpp_lib_shared_timed_mutex)
# include <shared_mutex>
#endif
+#endif
namespace butl
{
@@ -45,5 +48,3 @@ namespace butl
//
extern shared_mutex process_spawn_mutex;
}
-
-#endif // LIBBUTL_PROCESS_DETAILS_HXX