aboutsummaryrefslogtreecommitdiff
path: root/std-core.mxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-11-23 11:43:02 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-11-23 11:43:02 +0200
commit290ea7840c979e38a2108030a99e7e9c61f40a8c (patch)
tree041eb38e45d39e032d203fb1c48f8ff07609db3e /std-core.mxx
parentd657b1d00d41bf448a94f6a7c49cacd41c5fac0e (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-core.mxx')
-rw-r--r--std-core.mxx126
1 files changed, 0 insertions, 126 deletions
diff --git a/std-core.mxx b/std-core.mxx
deleted file mode 100644
index ace9b59..0000000
--- a/std-core.mxx
+++ /dev/null
@@ -1,126 +0,0 @@
-// file : std-core.mxx -*- C++ -*-
-// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
-// license : MIT; see accompanying LICENSE file
-
-// For some standard library implementations we need to pre-include certain
-// headers to prevent their exporting.
-
-#include "std-detect.hxx"
-
-#if defined(_MSC_VER)
-/*
-# include <io.h>
-# include <time.h>
-# include <stdlib.h>
-# include <string.h>
-# include <locale.h> // struct tm;
-*/
-#elif defined(__GLIBCXX__)
-# include <time.h>
-# include <errno.h>
-# include <wchar.h> // struct tm forward declaration.
-# include <stdio.h>
-# include <string.h>
-# include <strings.h>
-# include <sys/types.h>
-# include <ext/atomicity.h> // Names with internal linkage.
-#elif defined(_LIBCPP_VERSION)
-#endif
-
-export module std.core;
-
-export
-{
- // These are defined in <bits/c++config.h> which we have pre-included.
- //
-#ifdef __GLIBCXX__
- namespace std
- {
- typedef __SIZE_TYPE__ size_t;
- typedef __PTRDIFF_TYPE__ ptrdiff_t;
- typedef decltype(nullptr) nullptr_t;
- }
-#endif
-
-#include <cstddef>
-#include <cstdint>
-#include <cstdlib>
-
-#include <utility>
-#include <type_traits>
-
-#include <exception>
-#include <stdexcept>
-#include <system_error>
-
-#include <new>
-#include <memory>
-
-#include <limits>
-#include <ctime>
-#include <atomic>
-#include <chrono>
-#include <bitset>
-}
-
-export
-{
-#include <iterator>
-#include <algorithm>
-#include <functional>
-
-#include <string>
-#include <cstring> // @@ Not in the proposal.
-
-#include <array>
-#include <vector>
-#include <set>
-#include <map>
-#include <unordered_set>
-#include <unordered_map>
-#include <stack>
-}
-
-#if defined(_MSC_VER) || defined(__clang__)
-export
-{
-#include <cctype>
-#include <locale>
-#include <clocale>
-
-#include <iosfwd>
-#include <iomanip>
-#include <istream>
-#include <ostream>
-#include <sstream>
-#include <fstream>
-
-#ifndef __GLIBCXX__
-# include <iostream>
-#else
-// Contents of <iostream> without static __ioinit.
-//
-namespace std _GLIBCXX_VISIBILITY(default)
-{
-_GLIBCXX_BEGIN_NAMESPACE_VERSION
- extern istream cin;
- extern ostream cout;
- extern ostream cerr;
- extern ostream clog;
-
- //static ios_base::Init __ioinit;
-_GLIBCXX_END_NAMESPACE_VERSION
-}
-#endif
-}
-#endif
-
-// std.threading
-//
-export
-{
-#include <mutex>
-#include <shared_mutex>
-#include <condition_variable>
-#include <thread>
-}