// 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() // libstdc++ __GLIBCXX__ # include # endif #elif defined(__GNUC__) # include // libstdc++ __GLIBCXX__ #endif #if defined(_MSC_VER) #elif defined(__GLIBCXX__) # include // Names with internal linkage. #elif defined(_LIBCPP_VERSION) #else # error unknown standard library implementation #endif export module std.core; export { #include #include #include #include #include #include } export { #include #include #include #include // @@ Not in the proposal. #include } #if defined(_MSC_VER) || defined(__clang__) export { #include #include #include #include #include #include #include } #endif