diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-11-23 11:43:02 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-11-23 11:43:02 +0200 |
commit | 290ea7840c979e38a2108030a99e7e9c61f40a8c (patch) | |
tree | 041eb38e45d39e032d203fb1c48f8ff07609db3e /std-threading.mxx | |
parent | d657b1d00d41bf448a94f6a7c49cacd41c5fac0e (diff) |
Restructure and install std-detect.hxx
We have to install this header since it needs to be included'able during
module sidebuilds.
Diffstat (limited to 'std-threading.mxx')
-rw-r--r-- | std-threading.mxx | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/std-threading.mxx b/std-threading.mxx deleted file mode 100644 index ab397cc..0000000 --- a/std-threading.mxx +++ /dev/null @@ -1,60 +0,0 @@ -// file : 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 "std-detect.hxx" - -#if defined(_MSC_VER) -#error TODO -#elif defined(__GLIBCXX__) - -// <mutex> -# define _GLIBCXX_TUPLE -# define _GLIBCXX_CHRONO -# define __EXCEPTION__ // <exception> -# define _GLIBCXX_TYPE_TRAITS -# define _GLIBCXX_SYSTEM_ERROR -# define _GLIBCXX_STD_FUNCTION_H // <bits/std_function.h> -# define _FUNCTEXCEPT_H -# define _MOVE_H - -// <shared_mutex> -# include <cerrno> // Missing include. - -// <condition_variable> -# define _CONCURRENCE_H // <ext/concurrence.h> -# define _ALLOC_TRAITS_H // <bits/alloc_traits.h> -# define _ALLOCATOR_H // <bits/allocator.h> -# define _UNIQUE_PTR_H // <bits/unique_ptr.h> -# define _SHARED_PTR_H // <bits/shared_ptr.h> -# define _CXXABI_FORCED_H // <bits/cxxabi_forced.h> -# include <bits/exception_defines.h> // Missing include. - -// <thread> -# define _GLIBCXX_MEMORY -# define _FUNCTIONAL_HASH_H // <bits/functional_hash.h> -# define _GLIBCXX_INVOKE_H // <bits/invoke.h> - -# include <bits/gthr.h> -#elif defined(_LIBCPP_VERSION) -#endif - -export module std.threading; - -#ifdef __GLIBCXX__ -import std.core; -#endif - -export -{ -#include <mutex> -#include <shared_mutex> -#include <condition_variable> -#include <thread> -} -#endif |