aboutsummaryrefslogtreecommitdiff
path: root/std-regex.mxx
diff options
context:
space:
mode:
Diffstat (limited to 'std-regex.mxx')
-rw-r--r--std-regex.mxx55
1 files changed, 55 insertions, 0 deletions
diff --git a/std-regex.mxx b/std-regex.mxx
new file mode 100644
index 0000000..40cfc36
--- /dev/null
+++ b/std-regex.mxx
@@ -0,0 +1,55 @@
+// 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 <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>
+}