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 /libstd-modules/std-regex.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 'libstd-modules/std-regex.mxx')
-rw-r--r-- | libstd-modules/std-regex.mxx | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/libstd-modules/std-regex.mxx b/libstd-modules/std-regex.mxx new file mode 100644 index 0000000..427642c --- /dev/null +++ b/libstd-modules/std-regex.mxx @@ -0,0 +1,57 @@ +// file : libstd-modules/std-regex.mxx -*- C++ -*- +// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd +// license : MIT; see accompanying LICENSE file + +// Pre-includes. +// +#include <libstd-modules/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> +} |