summaryrefslogtreecommitdiffstats
path: root/libcxx/include/experimental/any
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/include/experimental/any')
-rw-r--r--libcxx/include/experimental/any18
1 files changed, 14 insertions, 4 deletions
diff --git a/libcxx/include/experimental/any b/libcxx/include/experimental/any
index 1dcdd0f25ec..d9c95342589 100644
--- a/libcxx/include/experimental/any
+++ b/libcxx/include/experimental/any
@@ -1,11 +1,21 @@
// -*- C++ -*-
-//===------------------------------ any -----------------------------------===//
+//===------------------------------- any ----------------------------------===//
//
// The LLVM Compiler Infrastructure
//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
+// This file is dual licensed under the MIT and the University of Illinois Open
+// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
+#ifndef _LIBCPP_EXPERIMENTAL_ANY
+#define _LIBCPP_EXPERIMENTAL_ANY
-#error "<experimental/any> has been removed. Use <any> instead."
+#include <__config>
+
+#ifdef _LIBCPP_WARNING
+_LIBCPP_WARNING("<experimental/any> has been removed. Use <any> instead.")
+#else
+# warning "<experimental/any> has been removed. Use <any> instead."
+#endif
+
+#endif // _LIBCPP_EXPERIMENTAL_ANY
OpenPOWER on IntegriCloud