summaryrefslogtreecommitdiff
path: root/chromium/buildtools/third_party/libc++/trunk/include/__undef___deallocate
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/buildtools/third_party/libc++/trunk/include/__undef___deallocate')
-rw-r--r--chromium/buildtools/third_party/libc++/trunk/include/__undef___deallocate18
1 files changed, 18 insertions, 0 deletions
diff --git a/chromium/buildtools/third_party/libc++/trunk/include/__undef___deallocate b/chromium/buildtools/third_party/libc++/trunk/include/__undef___deallocate
new file mode 100644
index 00000000000..2b4ad99dad3
--- /dev/null
+++ b/chromium/buildtools/third_party/libc++/trunk/include/__undef___deallocate
@@ -0,0 +1,18 @@
+// -*- C++ -*-
+//===----------------------------------------------------------------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is dual licensed under the MIT and the University of Illinois Open
+// Source Licenses. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+#ifdef __deallocate
+#if defined(_MSC_VER) && !defined(__clang__)
+_LIBCPP_WARNING("macro __deallocate is incompatible with C++. #undefining __deallocate")
+#else
+#warning: macro __deallocate is incompatible with C++. #undefining __deallocate
+#endif
+#undef __deallocate
+#endif