blob: 3aba712820d12c748b377d37c8704c34844c58e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
// 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. And to detect a standard library we
// need to include a certain header first.
//
#if defined(__clang__)
# if __has_include(<__config>) // libc++ _LIBCPP_VERSION
# include <__config>
# elif __has_include(<bits/c++config.h>) // libstdc++ __GLIBCXX__
# include <bits/c++config.h>
# endif
#elif defined(__GNUC__)
# include <bits/c++config.h> // libstdc++ __GLIBCXX__
#endif
#if defined(_MSC_VER)
#elif defined(__GLIBCXX__)
# include <ext/atomicity.h> // Names with internal linkage.
#elif defined(_LIBCPP_VERSION)
#else
# error unknown standard library implementation
#endif
export module std.core;
export
{
#include <cstddef>
#include <cstdint>
#include <cstdlib>
#include <utility>
#include <exception>
#include <stdexcept>
}
export
{
#include <iterator>
#include <algorithm>
#include <string>
#include <cstring> // @@ Not in the proposal.
#include <vector>
}
#if defined(_MSC_VER) || defined(__clang__)
export
{
#include <cctype>
#include <iosfwd>
#include <istream>
#include <ostream>
#include <iostream>
#include <sstream>
#include <fstream>
}
#endif
|