summaryrefslogtreecommitdiffstats
path: root/libcxx/include/module.modulemap
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2015-02-13 22:15:32 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2015-02-13 22:15:32 +0000
commit8e5ce331936f46e259acc03a81fd7d105429cc30 (patch)
treec9ca038b63e6cb3e4c0ba3c3d2f6adbbb8c365fe /libcxx/include/module.modulemap
parent4ef8ac946c577bafddcb211a3dbab6b3dcf66e08 (diff)
downloadbcm5719-llvm-8e5ce331936f46e259acc03a81fd7d105429cc30.tar.gz
bcm5719-llvm-8e5ce331936f46e259acc03a81fd7d105429cc30.zip
Handle function name conflicts in _LIBCPP_MSVCRT mode
Visual Studio's SAL extension uses a macro named __deallocate. This macro is used pervasively, and gets included through various different ways. This conflicts with the similarly named interfaces in libc++. Introduce a undef header similar to __undef_min_max to handle this. This fixes a number of errors due to the macro replacing the function name. llvm-svn: 229162
Diffstat (limited to 'libcxx/include/module.modulemap')
-rw-r--r--libcxx/include/module.modulemap1
1 files changed, 1 insertions, 0 deletions
diff --git a/libcxx/include/module.modulemap b/libcxx/include/module.modulemap
index 6aeb23f028b..3c0700eca44 100644
--- a/libcxx/include/module.modulemap
+++ b/libcxx/include/module.modulemap
@@ -469,4 +469,5 @@ module std [system] {
module __tree { header "__tree" export * }
module __tuple { header "__tuple" export * }
module __undef_min_max { header "__undef_min_max" export * }
+ module __undef___deallocate { header "__undef___deallocate" export * }
}
OpenPOWER on IntegriCloud