From 290ea7840c979e38a2108030a99e7e9c61f40a8c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 23 Nov 2017 11:43:02 +0200 Subject: Restructure and install std-detect.hxx We have to install this header since it needs to be included'able during module sidebuilds. --- libstd-modules/std-threading.mxx | 60 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 libstd-modules/std-threading.mxx (limited to 'libstd-modules/std-threading.mxx') diff --git a/libstd-modules/std-threading.mxx b/libstd-modules/std-threading.mxx new file mode 100644 index 0000000..b03f55f --- /dev/null +++ b/libstd-modules/std-threading.mxx @@ -0,0 +1,60 @@ +// file : libstd-modules/std-threading.mxx -*- C++ -*- +// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd +// license : MIT; see accompanying LICENSE file + +export module std.threading; // Dummy. + +#if 0 +// Pre-includes. +// +#include + +#if defined(_MSC_VER) +#error TODO +#elif defined(__GLIBCXX__) + +// +# define _GLIBCXX_TUPLE +# define _GLIBCXX_CHRONO +# define __EXCEPTION__ // +# define _GLIBCXX_TYPE_TRAITS +# define _GLIBCXX_SYSTEM_ERROR +# define _GLIBCXX_STD_FUNCTION_H // +# define _FUNCTEXCEPT_H +# define _MOVE_H + +// +# include // Missing include. + +// +# define _CONCURRENCE_H // +# define _ALLOC_TRAITS_H // +# define _ALLOCATOR_H // +# define _UNIQUE_PTR_H // +# define _SHARED_PTR_H // +# define _CXXABI_FORCED_H // +# include // Missing include. + +// +# define _GLIBCXX_MEMORY +# define _FUNCTIONAL_HASH_H // +# define _GLIBCXX_INVOKE_H // + +# include +#elif defined(_LIBCPP_VERSION) +#endif + +export module std.threading; + +#ifdef __GLIBCXX__ +import std.core; +#endif + +export +{ +#include +#include +#include +#include +} +#endif -- cgit v1.1