aboutsummaryrefslogtreecommitdiff
path: root/std-regex.mxx
blob: 7edfd94ad3ebe565dc565550f9f0b90a242bd19f (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
// file      : std-regex.mxx -*- C++ -*-
// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
// license   : MIT; see accompanying LICENSE file

// Pre-includes.
//
#include "std-detect.hxx"

#if   defined(_MSC_VER)
#  include <algorithm>
#  include <iterator>
#  include <locale>
#  include <stdexcept>
#  include <string>
#  include <utility>
#  include <vector>

#  include <wchar.h>
#  include <limits.h>
#  include <stdlib.h>
#  include <string.h>
#elif defined(__GLIBCXX__)
#  define _GLIBCXX_ALGORITHM
#  define _GLIBCXX_BITSET
#  define _GLIBCXX_IOSFWD
#  define _GLIBCXX_ITERATOR
#  define _GLIBCXX_LOCALE
#  define _GLIBCXX_MEMORY
#  define _GLIBCXX_SSTREAM
#  define _GLIBCXX_STACK
#  define _GLIBCXX_STDEXCEPT
#  define _GLIBCXX_STRING
#  define _GLIBCXX_UTILITY
#  define _GLIBCXX_VECTOR
#  define _GLIBCXX_MAP
#  define _GLIBCXX_CSTRING

#  define _GLIBCXX_STD_FUNCTION_H  // <bits/std_function.h>
#  define _ALIGNED_BUFFER_H        // <ext/aligned_buffer.h>

#  include <string.h>

#  include <debug/assertions.h>   // Missing include.
#elif defined(_LIBCPP_VERSION)
#endif

export module std.regex;

#ifdef __GLIBCXX__
import std.core;
import std.io;
#endif

export
{
#include <regex>
}