aboutsummaryrefslogtreecommitdiff
path: root/libstd-modules/std-regex.mxx
diff options
context:
space:
mode:
Diffstat (limited to 'libstd-modules/std-regex.mxx')
-rw-r--r--libstd-modules/std-regex.mxx57
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>
+}