diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2018-01-23 18:53:33 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2018-01-23 18:53:33 +0000 |
commit | 2f97aab6eae5b3afcfd614433633ed1e47166650 (patch) | |
tree | b3e5cd697972c750b0272e6171110583545f83fb /libcxx/src/support/win32/support.cpp | |
parent | 1e49137d34607733fde81f28747f328408d8ebd6 (diff) | |
download | bcm5719-llvm-2f97aab6eae5b3afcfd614433633ed1e47166650.tar.gz bcm5719-llvm-2f97aab6eae5b3afcfd614433633ed1e47166650.zip |
libcxx: Rename vasprintf function to __libcpp_vasprintf.
The language standard does not define a function with this name,
so it is part of the user's namespace. This change fixes a duplicate
symbol error that occurs when a user attempts to define a function
with this name.
Differential Revision: https://reviews.llvm.org/D42405
llvm-svn: 323237
Diffstat (limited to 'libcxx/src/support/win32/support.cpp')
-rw-r--r-- | libcxx/src/support/win32/support.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/src/support/win32/support.cpp b/libcxx/src/support/win32/support.cpp index dbd1c4c418a..aa636fba50b 100644 --- a/libcxx/src/support/win32/support.cpp +++ b/libcxx/src/support/win32/support.cpp @@ -19,7 +19,7 @@ // Like sprintf, but when return value >= 0 it returns // a pointer to a malloc'd string in *sptr. // If return >= 0, use free to delete *sptr. -int vasprintf( char **sptr, const char *__restrict format, va_list ap ) +int __libcpp_vasprintf( char **sptr, const char *__restrict format, va_list ap ) { *sptr = NULL; // Query the count required. |