summaryrefslogtreecommitdiffstats
path: root/libcxx/include/experimental/system_error
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/include/experimental/system_error')
-rw-r--r--libcxx/include/experimental/system_error12
1 files changed, 11 insertions, 1 deletions
diff --git a/libcxx/include/experimental/system_error b/libcxx/include/experimental/system_error
index 7937357fa14..1cf84ee0125 100644
--- a/libcxx/include/experimental/system_error
+++ b/libcxx/include/experimental/system_error
@@ -7,5 +7,15 @@
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
+#ifndef _LIBCPP_EXPERIMENTAL_SYSTEM_ERROR
+#define _LIBCPP_EXPERIMENTAL_SYSTEM_ERROR
-#error "<experimental/system_error> has been removed. Use <system_error> instead."
+#include <__config>
+
+#ifdef _LIBCPP_WARNING
+_LIBCPP_WARNING("<experimental/system_error> has been removed. Use <system_error> instead.")
+#else
+# warning "<experimental/system_error> has been removed. Use <system_error> instead."
+#endif
+
+#endif // _LIBCPP_EXPERIMENTAL_SYSTEM_ERROR
OpenPOWER on IntegriCloud