Changeset View
Changeset View
Standalone View
Standalone View
libcxx/include/__config
Show First 20 Lines • Show All 201 Lines • ▼ Show 20 Lines | |||||
# elif defined(_MSC_VER) | # elif defined(_MSC_VER) | ||||
# define _LIBCPP_COMPILER_MSVC | # define _LIBCPP_COMPILER_MSVC | ||||
# endif | # endif | ||||
# if !defined(_LIBCPP_COMPILER_CLANG_BASED) && __cplusplus < 201103L | # if !defined(_LIBCPP_COMPILER_CLANG_BASED) && __cplusplus < 201103L | ||||
# error "libc++ only supports C++03 with Clang-based compilers. Please enable C++11" | # error "libc++ only supports C++03 with Clang-based compilers. Please enable C++11" | ||||
# endif | # endif | ||||
# ifdef _LIBCPP_COMPILER_MSVC | |||||
# error If you successfully use libc++ with MSVC please tell the libc++ developers and consider upstreaming your \ | |||||
changes. We are not aware of anybody using this configuration and know that at least some code is currently broken. \ | |||||
If there are users of this configuration we are happy to provide support. | |||||
# endif | |||||
// FIXME: ABI detection should be done via compiler builtin macros. This | // FIXME: ABI detection should be done via compiler builtin macros. This | ||||
// is just a placeholder until Clang implements such macros. For now assume | // is just a placeholder until Clang implements such macros. For now assume | ||||
// that Windows compilers pretending to be MSVC++ target the Microsoft ABI, | // that Windows compilers pretending to be MSVC++ target the Microsoft ABI, | ||||
// and allow the user to explicitly specify the ABI to handle cases where this | // and allow the user to explicitly specify the ABI to handle cases where this | ||||
// heuristic falls short. | // heuristic falls short. | ||||
# if defined(_LIBCPP_ABI_FORCE_ITANIUM) && defined(_LIBCPP_ABI_FORCE_MICROSOFT) | # if defined(_LIBCPP_ABI_FORCE_ITANIUM) && defined(_LIBCPP_ABI_FORCE_MICROSOFT) | ||||
# error "Only one of _LIBCPP_ABI_FORCE_ITANIUM and _LIBCPP_ABI_FORCE_MICROSOFT can be defined" | # error "Only one of _LIBCPP_ABI_FORCE_ITANIUM and _LIBCPP_ABI_FORCE_MICROSOFT can be defined" | ||||
# elif defined(_LIBCPP_ABI_FORCE_ITANIUM) | # elif defined(_LIBCPP_ABI_FORCE_ITANIUM) | ||||
▲ Show 20 Lines • Show All 968 Lines • Show Last 20 Lines |